Jump to content

Talamin

Elite user
  • Posts

    329
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Talamin reacted to Hashira for a bug report, Regeneration state events   
    The `Regeneration` state should have event handlers (`Start`/`Loop`/`End`) in order to allow plugins / fight classes to execute rotations. The use case is as following:
     
    - The bot doesn't have food
    - The bot needs to regenerate HP but has mana
     
    In theory the FC could spam heals / potions if they are available, and it would be quite elegant to implement this if special events are added. I know that `FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState` / `FiniteStateMachineEvents.OnRunState` could be used but I think that native events would be cleaner (it also saves everyone from reinventing the wheel and building boiler plate around the FSM system).
×
×
  • Create New...