Skip to content

Commit

Permalink
Makes space actually scary for vamps
Browse files Browse the repository at this point in the history
  • Loading branch information
TDSSS committed Jul 26, 2019
1 parent 1e58c4e commit 500ae49
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions code/game/gamemodes/vampire/vampire.dm
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,14 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha

if(T.density)
return
vamp_burn(1)
if(bloodusable >= 10) //burn through your blood to tank the light for a little while
to_chat(owner, "<span class='warning'>The starlight saps your strength!</span>")
bloodusable -= 10
vamp_burn(10)
else //You're in trouble, get out of the sun NOW
to_chat(owner, "<span class='userdanger'>Your body is turning to ash, get out of the light now!</span>")
owner.adjustCloneLoss(10) //I'm melting!
vamp_burn(85)

/datum/vampire/proc/handle_vampire()
if(owner.hud_used)
Expand All @@ -419,7 +426,7 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha
if(istype(owner.loc, /turf/space))
check_sun()
if(istype(owner.loc.loc, /area/chapel) && !get_ability(/datum/vampire_passive/full))
vamp_burn(0)
vamp_burn(7)
nullified = max(0, nullified - 1)

/datum/vampire/proc/handle_vampire_cloak()
Expand All @@ -442,8 +449,7 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha
else
owner.alpha = round((255 * 0.80))

/datum/vampire/proc/vamp_burn(severe_burn)
var/burn_chance = severe_burn ? 35 : 8
/datum/vampire/proc/vamp_burn(burn_chance)
if(prob(burn_chance) && owner.health >= 50)
switch(owner.health)
if(75 to 100)
Expand Down

0 comments on commit 500ae49

Please sign in to comment.