Wizard Organ Damage (#9121)

Wizard healing spells now heal internal organs as well.

This is because brainmed focuses more on organs than external damage.
This commit is contained in:
Geeves
2020-07-12 15:57:14 +02:00
committed by GitHub
parent 12b47c90a0
commit bdb6679b1a
6 changed files with 24 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
amt_dam_brute = -15
amt_dam_fire = -15
amt_organ = -2
message = "You feel a pleasant rush of heat move through your body."
@@ -25,5 +26,6 @@
return 0
amt_dam_brute -= 5
amt_dam_fire -= 5
amt_organ -= 2
return "[src] will now heal more."

View File

@@ -13,12 +13,14 @@
amt_dam_brute = -10
amt_dam_fire = -10
amt_organ = -2
/spell/targeted/heal_target/area/empower_spell()
if(!..())
return 0
amt_dam_brute -= 5
amt_dam_fire -= 5
amt_organ -= 1
range += 2
return "[src] now heals more in a wider area."

View File

@@ -12,6 +12,7 @@
amt_dam_brute = -35
amt_dam_fire = -35
amt_organ = -5
message = "Your body feels like a furnace."
@@ -20,5 +21,6 @@
return 0
amt_dam_tox = -20
amt_dam_oxy = -20
amt_organ = -5
return "[src] now heals oxygen loss and toxic damage."

View File

@@ -13,6 +13,7 @@
amt_dam_fire = -50
amt_dam_oxy = -50
amt_dam_tox = -50
amt_organ = -15
hud_state = "gen_dissolve"
@@ -26,5 +27,6 @@
amt_dam_fire *= 2
amt_dam_oxy *= 2
amt_dam_tox *= 2
amt_organ *= 2
return "You will now heal twice as much, but take twice as much damage. It will probably kill you."

View File

@@ -23,6 +23,8 @@ Targeted spells have two useful flags: INCLUDEUSER and SELECTABLE. These are exp
var/amt_dam_oxy = 0
var/amt_dam_tox = 0
var/amt_organ = 0
var/amt_eye_blind = 0
var/amt_eye_blurry = 0
@@ -142,4 +144,11 @@ Targeted spells have two useful flags: INCLUDEUSER and SELECTABLE. These are exp
target.eye_blurry += amt_eye_blurry
target.dizziness += amt_dizziness
target.confused += amt_confused
target.stuttering += amt_stuttering
target.stuttering += amt_stuttering
if(ishuman(target))
var/mob/living/carbon/human/H = target
for(var/obj/item/organ/O in H.internal_organs)
if(amt_organ > 0)
O.take_damage(amt_organ)
else
O.heal_damage(-(amt_organ))