Move drain to new system

TODO
- There is a seg fault that happens when drain kills the mob
- leech unimplemented
- mob skills unimplemented
This commit is contained in:
gsemaj
2023-07-25 20:22:00 +00:00
parent 1cf2be9968
commit c1aff8d3c3
4 changed files with 51 additions and 14 deletions

View File

@@ -66,6 +66,7 @@ public:
BuffClass maxClass();
int getValue(BuffValueSelector selector);
EntityRef getLastSource();
/*
* In general, a Buff object won't exist
@@ -88,4 +89,5 @@ namespace Buffs {
void timeBuffUpdate(EntityRef self, Buff* buff, int status, BuffStack* stack);
void timeBuffTick(EntityRef self, Buff* buff);
void timeBuffTimeout(EntityRef self);
void tickDrain(EntityRef self, Buff* buff);
}