mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 20:47:43 +01:00
misc fixes (#18728)
* window hitby fix * runtime fix for protean rigs that have been qdel'd * mecha paintkit fix * start off by default * Fixes welder and make sprite purple * Cut overlays of previous thing before we swap! * cellfix * Absorbed fix
This commit is contained in:
@@ -262,13 +262,15 @@
|
||||
var/showpilot_lift = 5
|
||||
|
||||
/obj/item/kit/paint/ripley/customize(obj/mecha/M, mob/user)
|
||||
if(!istype(M)) //Kicks it back and gives proper error text.
|
||||
return ..()
|
||||
if(showpilot)
|
||||
M.show_pilot = TRUE
|
||||
M.pilot_lift = 5
|
||||
else
|
||||
M.show_pilot = FALSE
|
||||
M.pilot_lift = 0
|
||||
. = ..()
|
||||
. = ..() //Has to be done AFTER show_pilot being set in order to update the icon properly.
|
||||
|
||||
/obj/item/kit/paint/ripley/death
|
||||
name = "\"Reaper\" APLU customisation kit"
|
||||
|
||||
@@ -165,9 +165,12 @@
|
||||
var/tforce = 0
|
||||
if(ismob(source))
|
||||
tforce = 40
|
||||
else if(isobj(source))
|
||||
else if(isitem(source))
|
||||
var/obj/item/I = source
|
||||
tforce = I.throwforce
|
||||
else if(isobj(source))
|
||||
var/obj/hitting_object = source
|
||||
tforce = hitting_object.w_class * 5
|
||||
if(reinf) tforce *= 0.25
|
||||
if(health - tforce <= 7 && !reinf)
|
||||
anchored = FALSE
|
||||
|
||||
Reference in New Issue
Block a user