changeling
![code/modules/antagonists/changeling/changeling_power.dm 5](git.png)
Vars | |
active | used by a few powers that toggle |
---|---|
chemical_cost | How many changeling chems it costs to use |
disabled_by_fire | Does this ability stop working if you are burning? |
dna_cost | Cost of the ability in dna points, negative values are not valid |
helptext | Details displayed in fine print within the changling emporium |
ignores_fakedeath | usable when the changeling is in death coma |
req_absorbs | Similar to req_dna, but only gained from absorbing, not DNA sting |
req_dna | Amount of dna needed to use this ability. Note, changelings always have atleast 1 |
req_human | If you need to be humanoid to use this ability (disincludes monkeys) |
req_stat | Maximum stat before the ability is blocked.
For example, UNCONSCIOUS prevents it from being used when in hard crit or dead,
while DEAD allows the ability to be used on any stat values. |
Procs | |
try_to_sting | Contrary to the name, this proc isn't just used by changeling stings. It handles the activation of the action and the deducation of its cost. The order of the proc chain is: can_sting(). Should this fail, the process gets aborted early. sting_action(). This proc usually handles the actual effect of the action. Should sting_action succeed the following will be done: sting_feedback(). Produces feedback on the performed action. Don't ask me why this isn't handled in sting_action() The deduction of the cost of this power. Returns TRUE on a successful activation. |
Var Details
active
![code/modules/antagonists/changeling/changeling_power.dm 34](git.png)
used by a few powers that toggle
chemical_cost
![code/modules/antagonists/changeling/changeling_power.dm 13](git.png)
How many changeling chems it costs to use
disabled_by_fire
![code/modules/antagonists/changeling/changeling_power.dm 36](git.png)
Does this ability stop working if you are burning?
dna_cost
![code/modules/antagonists/changeling/changeling_power.dm 20](git.png)
Cost of the ability in dna points, negative values are not valid
Special numbers include CHANGELING_POWER_INNATE, which are given to changeling for free without bring prompted and CHANGELING_POWER_UNOBTAINABLE, which are not available for purchase in the changeling emporium
helptext
![code/modules/antagonists/changeling/changeling_power.dm 11](git.png)
Details displayed in fine print within the changling emporium
ignores_fakedeath
![code/modules/antagonists/changeling/changeling_power.dm 32](git.png)
usable when the changeling is in death coma
req_absorbs
![code/modules/antagonists/changeling/changeling_power.dm 26](git.png)
Similar to req_dna, but only gained from absorbing, not DNA sting
req_dna
![code/modules/antagonists/changeling/changeling_power.dm 22](git.png)
Amount of dna needed to use this ability. Note, changelings always have atleast 1
req_human
![code/modules/antagonists/changeling/changeling_power.dm 24](git.png)
If you need to be humanoid to use this ability (disincludes monkeys)
req_stat
![code/modules/antagonists/changeling/changeling_power.dm 30](git.png)
Maximum stat before the ability is blocked.
For example, UNCONSCIOUS
prevents it from being used when in hard crit or dead,
while DEAD
allows the ability to be used on any stat values.
Proc Details
try_to_sting
Contrary to the name, this proc isn't just used by changeling stings. It handles the activation of the action and the deducation of its cost. The order of the proc chain is: can_sting(). Should this fail, the process gets aborted early. sting_action(). This proc usually handles the actual effect of the action. Should sting_action succeed the following will be done: sting_feedback(). Produces feedback on the performed action. Don't ask me why this isn't handled in sting_action() The deduction of the cost of this power. Returns TRUE on a successful activation.