knockoff
Items with this component will have a chance to get knocked off (unequipped and sent to the ground) when the wearer is disarmed or knocked down.
Vars | |
knockoff_chance | Chance to knockoff when a knockoff action occurs. |
---|---|
slots_knockoffable | Bitflag used in equip to determine what slots we need to be in to be knocked off. If set, we must be equipped in one of the slots to have a chance of our item being knocked off. If unset / NONE, a disarm or knockdown will have a chance of our item being knocked off regardless of slot, INCLUDING hand slots. |
target_zones | Used in being disarmed. If set, we will only roll the knockoff chance if the disarmer is targeting one of these zones. If unset, any disarm act will cause the knock-off chance to be rolled, no matter the zone targeted. |
Procs | |
on_dropped | Signal proc for COMSIG_ITEM_DROPPED Unregisters our signals which can cause a knockdown when we're unequipped (dropped) |
on_equipped | Signal proc for COMSIG_ITEM_EQUIPPED Registers our signals which can cause a knockdown whenever we're equipped correctly |
on_equipped_mob_disarm | Signal proc for COMSIG_LIVING_DISARM_HIT on the mob who's equipped our parent Rolls a chance for knockoff whenever we're disarmed |
on_equipped_mob_knockdown | Signal proc for COMSIG_LIVING_STATUS_KNOCKDOWN on the mob who's equipped our parent Rolls a chance for knockoff whenever we're knocked down |
Var Details
knockoff_chance
Chance to knockoff when a knockoff action occurs.
slots_knockoffable
Bitflag used in equip to determine what slots we need to be in to be knocked off. If set, we must be equipped in one of the slots to have a chance of our item being knocked off. If unset / NONE, a disarm or knockdown will have a chance of our item being knocked off regardless of slot, INCLUDING hand slots.
target_zones
Used in being disarmed. If set, we will only roll the knockoff chance if the disarmer is targeting one of these zones. If unset, any disarm act will cause the knock-off chance to be rolled, no matter the zone targeted.
Proc Details
on_dropped
Signal proc for COMSIG_ITEM_DROPPED Unregisters our signals which can cause a knockdown when we're unequipped (dropped)
on_equipped
Signal proc for COMSIG_ITEM_EQUIPPED Registers our signals which can cause a knockdown whenever we're equipped correctly
on_equipped_mob_disarm
Signal proc for COMSIG_LIVING_DISARM_HIT on the mob who's equipped our parent Rolls a chance for knockoff whenever we're disarmed
on_equipped_mob_knockdown
Signal proc for COMSIG_LIVING_STATUS_KNOCKDOWN on the mob who's equipped our parent Rolls a chance for knockoff whenever we're knocked down