perk 
The root perk datum. All perks inherit properties from this one.
A perk is basically a talent that livings may have. This talent could be something like damage reduction, or some other passive benefit. Some jobs have perks that are assigned to the human during role assignment. Perks can be assigned or removed. To handle this, use the mob stats datum, with the helper procs addPerk, removePerk and getPerk. The static effects are given in assign, and removed in remove. Perks are stored in a list within a stat_holder datum.
Procs | |
| assign | Proc called when the perk is assigned to a human. Should be the first thing to be called. |
|---|---|
| check_shared_ability | Proc called , a bitflag is always expected. |
| on_process | Proc called in human life. Should be the first thing to be called. |
| remove | Proc called when the perk is removed from a human. Obviously, in your perks, you should call parent as the last thing you do, since it deletes the perk itself. |
Proc Details
assign
Proc called when the perk is assigned to a human. Should be the first thing to be called.
check_shared_ability
Proc called , a bitflag is always expected.
on_process
Proc called in human life. Should be the first thing to be called.
remove
Proc called when the perk is removed from a human. Obviously, in your perks, you should call parent as the last thing you do, since it deletes the perk itself.