honorbound
Honorbound prevents you from attacking the unready, the just, or the innocent
Vars | |
guilty | list of guilty people |
---|---|
Procs | |
attack_honor | Signal to see if the trauma allows us to attack a target |
check_visible_guilt | Checks a mob for any obvious signs of evil, and applies a guilty reason for each. |
guilty | Called by hooked signals whenever someone attacks the person with this trauma Checks if the attacker should be considered guilty and adds them to the guilty list if true |
is_honorable | Called by attack_honor signal to check whether an attack should be allowed or not |
on_attacked | Signal sent by the relay_attackers element. It makes the attacker guilty unless the damage was stamina or it was a shove. |
punishment | Called when a spell is casted or a magic gun is fired, checks the signal and punishes accordingly |
Var Details
guilty
list of guilty people
Proc Details
attack_honor
Signal to see if the trauma allows us to attack a target
check_visible_guilt
Checks a mob for any obvious signs of evil, and applies a guilty reason for each.
guilty
Called by hooked signals whenever someone attacks the person with this trauma Checks if the attacker should be considered guilty and adds them to the guilty list if true
Arguments:
- user: person who attacked the honorbound
- reason: why this person is now guilty (future pr idea: letting honorbound print a receipt for why someone is guilty? lol)
is_honorable
Called by attack_honor signal to check whether an attack should be allowed or not
Arguments:
- honorbound_human: typecasted owner of the trauma
- target_creature: person honorbound_human is attacking
on_attacked
Signal sent by the relay_attackers element. It makes the attacker guilty unless the damage was stamina or it was a shove.
punishment
Called when a spell is casted or a magic gun is fired, checks the signal and punishes accordingly
Arguments:
- user: typecasted owner of trauma
- school: school of magic casted from the staff/spell