Modifier integration.

This commit is contained in:
Mechoid
2019-04-14 13:38:10 -07:00
parent e668b12bc5
commit 4b4035932f
4 changed files with 47 additions and 6 deletions
+2
View File
@@ -45,6 +45,8 @@
var/icon_scale_percent // Makes the holder's icon get scaled up or down.
var/attack_speed_percent // Makes the holder's 'attack speed' (click delay) shorter or longer.
var/pain_immunity // Makes the holder not care about pain while this is on. Only really useful to human mobs.
var/pulse_modifier // Modifier for pulse, will be rounded on application, then added to the normal 'pulse' multiplier which ranges between 0 and 5 normally. Only applied if they're living.
var/pulse_set_level // Positive number. If this is non-null, it will hard-set the pulse level to this. Pulse ranges from 0 to 5 normally.
/datum/modifier/New(var/new_holder, var/new_origin)
holder = new_holder
+12 -1
View File
@@ -267,4 +267,15 @@ the artifact triggers the rage.
return FALSE
if(L.get_poison_protection() >= 1)
return FALSE
return TRUE
return TRUE
// Pulse modifier.
/datum/modifier/false_pulse
name = "false pulse"
desc = "Your blood flows, despite all other factors."
on_created_text = "<span class='notice'>You feel alive.</span>"
on_expired_text = "<span class='notice'>You feel.. different.</span>"
stacks = MODIFIER_STACK_EXTEND
pulse_set_level = PULSE_NORM