Function tutorial_buff_tick

Source
pub fn tutorial_buff_tick(ctx: &EventCtx<'_>) -> Result<Vec<OverlordEvent>>
Expand description

Port of the tutorial damage buff: when THIS entity is the one that took damage (the effect subscribes to Damage, and the script guards on Event.entity_id == Entity.id), scale crit chance and damage-reduction by fraction of HP lost and push the four attribute deltas. RNG-free.