mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 10:33:30 +01:00
Fixes HUD overlays, a runtime with borgs AND AI sec/medhuds
This commit is contained in:
@@ -90,6 +90,8 @@ var/global/list/brutefireloss_overlays = list("1" = image("icon" = 'icons/mob/sc
|
||||
if(life_tick == 1)
|
||||
regenerate_icons() // Make sure the inventory updates
|
||||
|
||||
if(ticker && ticker.mode.name == "nations")
|
||||
process_nations()
|
||||
|
||||
/mob/living/carbon/human/calculate_affecting_pressure(var/pressure)
|
||||
..()
|
||||
@@ -1070,10 +1072,6 @@ var/global/list/brutefireloss_overlays = list("1" = image("icon" = 'icons/mob/sc
|
||||
if(hud_updateflag)
|
||||
handle_hud_list()
|
||||
|
||||
if(get_nations_mode())
|
||||
process_nations()
|
||||
|
||||
|
||||
|
||||
/mob/living/carbon/human/handle_random_events()
|
||||
// Puke if toxloss is too high
|
||||
|
||||
@@ -307,5 +307,5 @@
|
||||
/mob/living/proc/process_nations()
|
||||
if(client)
|
||||
var/client/C = client
|
||||
for(var/mob/living/carbon/human/H in view())
|
||||
for(var/mob/living/carbon/human/H in view(src, 14))
|
||||
C.images += H.hud_list[NATIONS_HUD]
|
||||
@@ -55,7 +55,6 @@
|
||||
aiRestorePowerRoutine = 0
|
||||
blind.layer = 0
|
||||
|
||||
return
|
||||
|
||||
else
|
||||
|
||||
@@ -154,8 +153,8 @@
|
||||
if (MED_HUD)
|
||||
process_med_hud(src, 1, eyeobj)
|
||||
|
||||
if(get_nations_mode())
|
||||
process_nations()
|
||||
if(ticker && ticker.mode.name == "nations")
|
||||
process_nations_ai()
|
||||
|
||||
/mob/living/silicon/ai/updatehealth()
|
||||
if(status_flags & GODMODE)
|
||||
@@ -175,3 +174,9 @@
|
||||
/mob/living/silicon/ai/rejuvenate()
|
||||
..()
|
||||
add_ai_verbs(src)
|
||||
|
||||
/mob/living/silicon/ai/proc/process_nations_ai()
|
||||
if(client)
|
||||
var/client/C = client
|
||||
for(var/mob/living/carbon/human/H in view(eyeobj, 14))
|
||||
C.images += H.hud_list[NATIONS_HUD]
|
||||
@@ -13,6 +13,8 @@
|
||||
process_locks()
|
||||
process_queued_alarms()
|
||||
|
||||
if(ticker && ticker.mode.name == "nations")
|
||||
process_nations()
|
||||
|
||||
/mob/living/silicon/robot/proc/clamp_values()
|
||||
SetStunned(min(stunned, 30))
|
||||
@@ -263,8 +265,6 @@
|
||||
mind.special_role = "traitor"
|
||||
ticker.mode.traitors += src.mind
|
||||
|
||||
if(get_nations_mode())
|
||||
process_nations()
|
||||
|
||||
..()
|
||||
return 1
|
||||
|
||||
@@ -1431,7 +1431,6 @@ var/list/robot_verbs_default = list(
|
||||
//subsystems
|
||||
module.add_subsystems(src)
|
||||
|
||||
hands.icon_state = lowertext("Combat")
|
||||
updatename()
|
||||
|
||||
status_flags &= ~CANPUSH
|
||||
@@ -1439,7 +1438,6 @@ var/list/robot_verbs_default = list(
|
||||
radio.config(module.channels)
|
||||
notify_ai(2)
|
||||
|
||||
|
||||
/mob/living/silicon/robot/peacekeeper/New()
|
||||
..()
|
||||
module = new /obj/item/weapon/robot_module/peacekeeper(src)
|
||||
@@ -1451,7 +1449,6 @@ var/list/robot_verbs_default = list(
|
||||
//subsystems
|
||||
module.add_subsystems(src)
|
||||
|
||||
hands.icon_state = lowertext("Combat")
|
||||
updatename()
|
||||
|
||||
status_flags &= ~CANPUSH
|
||||
|
||||
Reference in New Issue
Block a user