More reliable stamina calculation

by separately handling immediate one-time cost and cost over time.
This commit is contained in:
gentlespoon
2022-05-07 05:00:50 -07:00
committed by Melledy
Unverified
parent 43c27c4679
commit 8e99cb4f35
5 changed files with 268 additions and 246 deletions
@@ -1,6 +1,5 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.Grasscutter;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.PacketOpcodes;
@@ -15,10 +14,7 @@ public class HandlerEvtDoSkillSuccNotify extends PacketHandler {
EvtDoSkillSuccNotify notify = EvtDoSkillSuccNotify.parseFrom(payload);
// TODO: Will be used for deducting stamina for charged skills.
int caster = notify.getCasterId();
int skillId = notify.getSkillId();
session.getPlayer().getMovementManager().notifySkill(caster, skillId);
session.getPlayer().getMovementManager().handleEvtDoSkillSuccNotify(session, notify);
}
}