mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] more 516 compat (#9914)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7adbee0911
commit
5c1ab76e5d
@@ -176,6 +176,8 @@ If it gains pressure too slowly, it may leak or just rupture instead of explodin
|
||||
//reduce firelevel.
|
||||
if(enemy_tile.fire_protection > world.time-30)
|
||||
firelevel -= 1.5
|
||||
if(firelevel < 0)
|
||||
firelevel = 0
|
||||
continue
|
||||
|
||||
//Spread the fire.
|
||||
|
||||
@@ -230,7 +230,7 @@
|
||||
return TRACKING_TERMINATE
|
||||
var/turf/pos = get_turf(src)
|
||||
var/area/B = pos?.loc // No cam tracking in dorms!
|
||||
if(InvalidPlayerTurf(pos) || B.flag_check(AREA_BLOCK_TRACKING))
|
||||
if(InvalidPlayerTurf(pos) || B?.flag_check(AREA_BLOCK_TRACKING))
|
||||
return TRACKING_TERMINATE
|
||||
if(invisibility >= INVISIBILITY_LEVEL_ONE) //cloaked
|
||||
return TRACKING_TERMINATE
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
var/blood_volume = round(occupant.vessel.get_reagent_amount(REAGENT_ID_BLOOD))
|
||||
occupantData["bloodLevel"] = blood_volume
|
||||
occupantData["bloodMax"] = occupant.species.blood_volume
|
||||
occupantData["bloodPercent"] = round(100*(blood_volume/occupant.species.blood_volume), 0.01) //copy pasta ends here
|
||||
occupantData["bloodPercent"] = occupant.species.blood_volume ? round(100*(blood_volume/occupant.species.blood_volume), 0.01) : 0 //copy pasta ends here, some species have no blood volume
|
||||
|
||||
occupantData["bloodType"] = occupant.dna.b_type
|
||||
occupantData["surgery"] = build_surgery_list(user)
|
||||
|
||||
@@ -484,6 +484,8 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
|
||||
L.pixel_x = -13
|
||||
L.pixel_y = 7
|
||||
|
||||
/obj/structure/bed/chair/janicart/update_icon()
|
||||
return
|
||||
|
||||
/obj/structure/bed/chair/janicart/bullet_act(var/obj/item/projectile/Proj)
|
||||
if(has_buckled_mobs())
|
||||
|
||||
@@ -239,15 +239,16 @@
|
||||
|
||||
dellog += "</ol>"
|
||||
|
||||
usr << browse(dellog.Join(), "window=dellog")
|
||||
usr << browse("<html>[dellog.Join()]</html>", "window=dellog")
|
||||
|
||||
/client/proc/cmd_display_init_log()
|
||||
set category = "Debug.Investigate"
|
||||
set name = "Display Initialize() Log"
|
||||
set desc = "Displays a list of things that didn't handle Initialize() properly"
|
||||
|
||||
if(!check_rights(R_DEBUG)) return
|
||||
src << browse(replacetext(SSatoms.InitLog(), "\n", "<br>"), "window=initlog")
|
||||
if(!check_rights(R_DEBUG))
|
||||
return
|
||||
src << browse("<html>[replacetext(SSatoms.InitLog(), "\n", "<br>")]</html>", "window=initlog")
|
||||
|
||||
/*
|
||||
/client/proc/cmd_display_overlay_log()
|
||||
|
||||
@@ -498,12 +498,10 @@ var/global/list/obj/item/pda/PDAs = list()
|
||||
|
||||
/obj/item/pda/Destroy()
|
||||
PDAs -= src
|
||||
if(id.loc != src)
|
||||
id = null
|
||||
if (src.id && !delete_id)
|
||||
src.id.forceMove(get_turf(src.loc))
|
||||
if (id && !delete_id && id.loc == src)
|
||||
id.forceMove(get_turf(loc))
|
||||
else
|
||||
QDEL_NULL(src.id)
|
||||
QDEL_NULL(id)
|
||||
|
||||
current_app = null
|
||||
scanmode = null
|
||||
|
||||
@@ -50,9 +50,9 @@
|
||||
user.show_message(span_notice("Analyzing Results for [C]:"))
|
||||
user.show_message(span_notice(" Overall Status: [C.stat > 1 ? "dead" : "[C.health - C.halloss]% healthy"]"), 1)
|
||||
user.show_message(span_notice(" Damage Specifics:") + " [(C.getOxyLoss() > 50) ? span_warning(C.getOxyLoss()) : C.getOxyLoss()]-\
|
||||
[(C.getToxLoss() > 50) ? span_warning(C.getToxLoss()) : C.getToxLoss()]-\
|
||||
[(C.getFireLoss() > 50) ? span_warning(C.getFireLoss()) : C.getFireLoss()]-\
|
||||
[(C.getBruteLoss() > 50) ? span_warning(C.getBruteLoss()) : C.getBruteLoss()]", 1)
|
||||
[(C.getToxLoss() > 50) ? span_warning("[C.getToxLoss()]") : C.getToxLoss()]-\
|
||||
[(C.getFireLoss() > 50) ? span_warning("[C.getFireLoss()]") : C.getFireLoss()]-\
|
||||
[(C.getBruteLoss() > 50) ? span_warning("[C.getBruteLoss()]") : C.getBruteLoss()]", 1)
|
||||
user.show_message(span_notice(" Key: Suffocation/Toxin/Burns/Brute"), 1)
|
||||
user.show_message(span_notice(" Body Temperature: [C.bodytemperature-T0C]°C ([C.bodytemperature*1.8-459.67]°F)"), 1)
|
||||
if(C.tod && (C.stat == DEAD || (C.status_flags & FAKEDEATH)))
|
||||
|
||||
Reference in New Issue
Block a user