mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
@@ -271,7 +271,7 @@ mob/living
|
||||
|
||||
var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump, /obj/machinery/atmospherics/unary/vent_scrubber)
|
||||
|
||||
/mob/living/proc/handle_ventcrawl(var/atom/clicked_on) // -- TLE -- Merged by Carn
|
||||
/mob/living/handle_ventcrawl(var/atom/clicked_on) // -- TLE -- Merged by Carn
|
||||
if(!Adjacent(clicked_on))
|
||||
return
|
||||
|
||||
|
||||
+38
-27
@@ -895,9 +895,34 @@ var/list/slot_equipment_priority = list( \
|
||||
/mob/Stat()
|
||||
..()
|
||||
|
||||
if(listed_turf && client)
|
||||
if(!TurfAdjacent(listed_turf))
|
||||
listed_turf = null
|
||||
else
|
||||
statpanel(listed_turf.name, null, listed_turf)
|
||||
for(var/atom/A in listed_turf)
|
||||
if(A.invisibility > see_invisible)
|
||||
continue
|
||||
if(is_type_in_list(A, shouldnt_see))
|
||||
continue
|
||||
statpanel(listed_turf.name, null, A)
|
||||
|
||||
statpanel("Status") // We only want alt-clicked turfs to come before Status
|
||||
|
||||
if(mind && mind.changeling)
|
||||
add_stings_to_statpanel(mind.changeling.purchasedpowers)
|
||||
|
||||
if(spell_list && spell_list.len)
|
||||
for(var/obj/effect/proc_holder/spell/wizard/S in spell_list)
|
||||
add_spell_to_statpanel(S)
|
||||
if(mind && istype(src, /mob/living) && mind.spell_list && mind.spell_list.len)
|
||||
for(var/obj/effect/proc_holder/spell/wizard/S in mind.spell_list)
|
||||
add_spell_to_statpanel(S)
|
||||
|
||||
|
||||
if(client && client.holder)
|
||||
|
||||
if(statpanel("Status")) //not looking at that panel
|
||||
if(statpanel("DI")) //not looking at that panel
|
||||
stat(null, "Location:\t([x], [y], [z])")
|
||||
stat(null, "CPU:\t[world.cpu]")
|
||||
stat(null, "Instances:\t[world.contents.len]")
|
||||
@@ -973,36 +998,19 @@ var/list/slot_equipment_priority = list( \
|
||||
else
|
||||
stat(null, "processScheduler is not running.")
|
||||
|
||||
if(listed_turf && client)
|
||||
if(!TurfAdjacent(listed_turf))
|
||||
listed_turf = null
|
||||
else
|
||||
statpanel(listed_turf.name, null, listed_turf)
|
||||
for(var/atom/A in listed_turf)
|
||||
if(A.invisibility > see_invisible)
|
||||
continue
|
||||
if(is_type_in_list(A, shouldnt_see))
|
||||
continue
|
||||
statpanel(listed_turf.name, null, A)
|
||||
|
||||
if(mind && mind.changeling)
|
||||
add_stings_to_statpanel(mind.changeling.purchasedpowers)
|
||||
|
||||
if(spell_list && spell_list.len)
|
||||
for(var/obj/effect/proc_holder/spell/wizard/S in spell_list)
|
||||
switch(S.charge_type)
|
||||
if("recharge")
|
||||
statpanel(S.panel,"[S.charge_counter/10.0]/[S.charge_max/10]",S)
|
||||
if("charges")
|
||||
statpanel(S.panel,"[S.charge_counter]/[S.charge_max]",S)
|
||||
if("holdervar")
|
||||
statpanel(S.panel,"[S.holder_var_type] [S.holder_var_amount]",S)
|
||||
|
||||
|
||||
/mob/proc/add_stings_to_statpanel(var/list/stings)
|
||||
for(var/obj/effect/proc_holder/changeling/S in stings)
|
||||
if(S.chemical_cost >=0 && S.can_be_used_by(src))
|
||||
statpanel("[S.panel]",((S.chemical_cost > 0) ? "[S.chemical_cost]" : ""),S)
|
||||
/mob/proc/add_spell_to_statpanel(var/obj/effect/proc_holder/spell/wizard/S)
|
||||
switch(S.charge_type)
|
||||
if("recharge")
|
||||
statpanel(S.panel,"[S.charge_counter/10.0]/[S.charge_max/10]",S)
|
||||
if("charges")
|
||||
statpanel(S.panel,"[S.charge_counter]/[S.charge_max]",S)
|
||||
if("holdervar")
|
||||
statpanel(S.panel,"[S.holder_var_type] [S.holder_var_amount]",S)
|
||||
/* // Why have a duplicate set of turfs in the stat panel?
|
||||
if(listed_turf)
|
||||
if(get_dist(listed_turf,src) > 1)
|
||||
@@ -1472,4 +1480,7 @@ mob/proc/yank_out_object()
|
||||
spell.action.background_icon_state = spell.action_background_icon_state
|
||||
if(isliving(src))
|
||||
spell.action.Grant(src)
|
||||
return
|
||||
return
|
||||
|
||||
/mob/proc/handle_ventcrawl()
|
||||
return // Only living mobs can ventcrawl
|
||||
@@ -64,6 +64,8 @@
|
||||
return
|
||||
|
||||
Stat()
|
||||
if((!ticker) || ticker.current_state == GAME_STATE_PREGAME)
|
||||
statpanel("Lobby") // First tab during pre-game.
|
||||
..()
|
||||
|
||||
statpanel("Status")
|
||||
|
||||
Reference in New Issue
Block a user