flashgnash / ordis

GNU General Public License v3.0
1 stars 0 forks source link

Spell casting system needs to link to mana system #20

Closed flashgnash closed 1 month ago

flashgnash commented 1 month ago

Currently the spell casting system is lacking, only having a get_spell and get_spells command which only prints out existing information

It should be linked to the new mana system in that:

/cast (single use spell name) should apply the energy modification of the spell to the user's energy counter (It should error if the user tries to use a loop spell)

/toggle (loop spell) should in some way enable a looped spell

/end_turn should apply all the transformations that are currently enabled in the order they were enabled in

/end_combat should disable all toggled spells

As the bot knows about the cast time for spells also, it could also ensure the user does not go over their action limit per turn, however this is out of scope for this change and would cause issues when action count is modified by things other than spell casting (like for example stealing an action from another character, taking an action to simply punch someone, etc)

flashgnash commented 1 month ago

Partially complete - /cast command has been added in #24 and deducts mana

flashgnash commented 1 month ago

Toggle casting added and merged in #24