and finally, the modules folder. Now I can publish and take a break
This commit is contained in:
@@ -7,12 +7,11 @@
|
||||
flag = "energy"
|
||||
var/temperature = 100
|
||||
|
||||
/obj/item/projectile/temp/on_hit(atom/target, blocked = FALSE)//These two could likely check temp protection on the mob
|
||||
..()
|
||||
/obj/item/projectile/temp/on_hit(atom/target, blocked = 0)
|
||||
. = ..()
|
||||
if(isliving(target))
|
||||
var/mob/M = target
|
||||
M.bodytemperature = temperature
|
||||
return TRUE
|
||||
var/mob/living/L = target
|
||||
L.adjust_bodytemperature(((100-blocked)/100)*(temperature - L.bodytemperature)) // the new body temperature is adjusted by 100-blocked % of the delta between body temperature and the bullet's effect temperature
|
||||
|
||||
/obj/item/projectile/temp/hot
|
||||
name = "heat beam"
|
||||
|
||||
Reference in New Issue
Block a user