mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Ghosts with antagHUD enabled can now see AI/borg laws on examine.
This commit is contained in:
@@ -23,5 +23,14 @@
|
|||||||
msg += "</span>"
|
msg += "</span>"
|
||||||
msg += "*---------*</span>"
|
msg += "*---------*</span>"
|
||||||
|
|
||||||
usr << msg
|
user << msg
|
||||||
|
user.showLaws(src)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
/mob/proc/showLaws(var/mob/living/silicon/S)
|
||||||
|
return
|
||||||
|
|
||||||
|
/mob/dead/observer/showLaws(var/mob/living/silicon/S)
|
||||||
|
if(antagHUD || is_admin(src))
|
||||||
|
S.laws.show_laws(src)
|
||||||
|
|||||||
@@ -39,4 +39,5 @@
|
|||||||
msg += "\nIt is [pose]"
|
msg += "\nIt is [pose]"
|
||||||
|
|
||||||
user << msg
|
user << msg
|
||||||
|
user.showLaws(src)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -162,13 +162,12 @@
|
|||||||
|
|
||||||
// This adds the basic clock, shuttle recall timer, and malf_ai info to all silicon lifeforms
|
// This adds the basic clock, shuttle recall timer, and malf_ai info to all silicon lifeforms
|
||||||
/mob/living/silicon/Stat()
|
/mob/living/silicon/Stat()
|
||||||
..()
|
if(statpanel("Status"))
|
||||||
statpanel("Status")
|
|
||||||
if (src.client.statpanel == "Status")
|
|
||||||
show_station_time()
|
show_station_time()
|
||||||
show_emergency_shuttle_eta()
|
show_emergency_shuttle_eta()
|
||||||
show_system_integrity()
|
show_system_integrity()
|
||||||
show_malf_ai()
|
show_malf_ai()
|
||||||
|
..()
|
||||||
|
|
||||||
// this function displays the stations manifest in a separate window
|
// this function displays the stations manifest in a separate window
|
||||||
/mob/living/silicon/proc/show_station_manifest()
|
/mob/living/silicon/proc/show_station_manifest()
|
||||||
|
|||||||
@@ -162,6 +162,11 @@ proc/getsensorlevel(A)
|
|||||||
return U.sensor_mode
|
return U.sensor_mode
|
||||||
return SUIT_SENSOR_OFF
|
return SUIT_SENSOR_OFF
|
||||||
|
|
||||||
|
|
||||||
|
/proc/is_admin(var/mob/user)
|
||||||
|
return check_rights(R_ADMIN, 0, user) != 0
|
||||||
|
|
||||||
|
|
||||||
/proc/hsl2rgb(h, s, l)
|
/proc/hsl2rgb(h, s, l)
|
||||||
return //TODO: Implement
|
return //TODO: Implement
|
||||||
|
|
||||||
|
|||||||
@@ -222,7 +222,7 @@
|
|||||||
return law_sets
|
return law_sets
|
||||||
|
|
||||||
/obj/nano_module/law_manager/proc/is_malf(var/mob/user)
|
/obj/nano_module/law_manager/proc/is_malf(var/mob/user)
|
||||||
return is_admin(user) || (owner.isAI() && owner.mind.special_role == "malfunction")
|
return is_admin(user) || (owner.mind && (owner.mind.special_role == "malfunction" || owner.mind.special_role == "traitor"))
|
||||||
|
|
||||||
/obj/nano_module/law_manager/proc/is_slaved()
|
/obj/nano_module/law_manager/proc/is_slaved()
|
||||||
if(owner.isRobot())
|
if(owner.isRobot())
|
||||||
|
|||||||
@@ -1,5 +1,2 @@
|
|||||||
/obj/nano_module/proc/can_still_topic()
|
/obj/nano_module/proc/can_still_topic()
|
||||||
return CanUseTopic(usr, list(), default_state) == STATUS_INTERACTIVE
|
return CanUseTopic(usr, list(), default_state) == STATUS_INTERACTIVE
|
||||||
|
|
||||||
/obj/nano_module/proc/is_admin(var/mob/user)
|
|
||||||
return check_rights(R_ADMIN, 0, user) != 0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user