Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

UM-036 - Chill Pill Tweak #185

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 21 additions & 8 deletions code/datums/abilities/wizard/iceburst.dm
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
src.underlays += iced
boutput(iced, "<span style=\"color:red\">You are trapped within [src]!</span>") // since this is used in at least two places to trap people in things other than ice cubes
src.health *= (rand(10,20)/10)

if (!(src in processing_items))
processing_items.Add(src)

return

relaymove(mob/user as mob)
Expand All @@ -106,17 +110,28 @@

if(prob(25))
src.health--
if(src.health <= 0)
qdel(src)
src.check_health()
return

proc/process()
for(var/mob/M in src)
if (M.bodytemperature > 0)
M.bodytemperature = max(M.bodytemperature-40,0)
src.health--
src.check_health()

attack_hand(mob/user as mob)
user.visible_message("<span class='combat'><b>[user]</b> kicks [src]!</span>", "<span style=\"color:blue\">You kick [src].</span>")

src.health -= 2
src.check_health()
return

proc/check_health()
if(src.health <= 0)
qdel(src)
return
return 1
return 0

bullet_act(var/obj/projectile/P)
var/damage = 0
Expand All @@ -137,20 +152,18 @@
if(D_ENERGY)
src.health -= (damage/4)

if(src.health <= 0)
qdel(src)

src.check_health()
return

attackby(obj/item/W as obj, mob/user as mob)
src.health -= W.force
if(src.health <= 0)
qdel(src)
if(src.check_health())
return
..()
return

disposing()
processing_items.Remove(src)
for(var/atom/movable/AM in src)
if(ismob(AM))
var/mob/M = AM
Expand Down
6 changes: 5 additions & 1 deletion code/datums/chemistry/Reagents-Medical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -993,12 +993,16 @@ datum

on_mob_life(var/mob/M)
if(!M) M = holder.my_atom
if(M.bodytemperature < M.base_body_temp - 45)
if(M.bodytemperature < M.base_body_temp - 100)
var/health_before = M.health
if(M.get_oxygen_deprivation())
M.take_oxygen_deprivation(-10)
if(M.get_toxin_damage())
M.take_toxin_damage(-3)
M.HealDamage("All", 12, 12)
if(M.health > health_before)
var/increase = min((M.health - health_before)/37*25,25) //12+12+3+10 = 37 health healed possible, 25 max temp increase possible
M.bodytemperature = min(M.bodytemperature+increase,M.base_body_temp)

M.updatehealth()
if(prob(25)) M.UpdateDamageIcon() // gonna leave this one on for now, but only call it a quarter of the time
Expand Down
7 changes: 4 additions & 3 deletions code/datums/chemistry/Reagents-Misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -736,14 +736,15 @@ datum

if (M.bioHolder)
if (!M.is_cold_resistant())
new /obj/icecube(get_turf(M), M)
M.bodytemperature = 0
var/obj/icecube/I = new/obj/icecube(get_turf(M), M)
I.health = max(volume_passed/5,1)
//M.bodytemperature = 0
return

on_mob_life(var/mob/M)
if (!M) M = holder.my_atom
if (M.bodytemperature > 0)
M.bodytemperature = max(M.bodytemperature-50,0)
M.bodytemperature = max(M.bodytemperature-10,0)
..(M)
return

Expand Down