Because Mantis is Open-Source, I'm going to post quite frequently any updates that I have here, while any final releases will be posted up onto the Website and to Launchpad.
I'll start off with everything that I have now. I don't have a set curing priorities list, which lists the priorities of afflictions to be queued, but that's easily pulled from the Treant files, and I might just go ahead and copy how Iasmos did it with PHP-style lists, but that can be debated later.
Here is the GIANT list of cures that I have so far:
http://pastebin.com/f5295a6f3
In them, there's the sending cure messages that will be sent to the MUD when the affliction is found, plus the associated balances. Each balance is prioritised, so if first priority is being used, it'll go to the second, and so on and so forth. The balances are prioritised via a small script:
Code: Select all
mantisBalancePriorities = {"salve", "herb", "pipe", "balance", "focus"}
- Affliction is added to queue.
- System checks the affliction's priority.
- Checks for what balances are used to cure the affliction.
- Checks if the prioritised balance is on or off.
- If on, sends associated cure. If off, goes to next balance, and tries again.
- When cure message is recognised via a trigger, affliction is removed from the list.