Schwenckenator / DungeonRoguelike

A roguelike in a dungeon
1 stars 0 forks source link

Currently no way to create overtime effect #64

Closed crushingCodes closed 4 years ago

crushingCodes commented 4 years ago

Need an abstract way to add overtime effects, such as buffs or damage.

Schwenckenator commented 4 years ago

I wonder if the overtime stuff is best held on the ability or the effect end... Stuff to think about.

crushingCodes commented 4 years ago

Yeah, I was trying to think of a clean logical way. I was thinking of creating a way for a character to store active over time effects, and those would be pushed on to the character at the time of activating the effect. Then I was hoping to subscribe to turns events, and check the lifetime of the event and delete itself from the character attributes when lifetime finished.