Lets families compile

This commit is contained in:
keronshb
2021-10-12 16:12:38 -04:00
parent d88933b492
commit bd7a2b6a2a
22 changed files with 129 additions and 502 deletions
+12 -12
View File
@@ -1,27 +1,27 @@
/obj/screen/wanted
/atom/movable/screen/wanted
name = "Space Police Alertness"
desc = "Shows the current level of hostility the space police is planning to rain down on you. Better be careful."
icon = 'icons/obj/gang/wanted_160x32.dmi'
icon_state = "wanted_0"
screen_loc = ui_wanted_lvl
///Wanted level, affects the hud icon.
var/level
///Boolean, have the cops arrived? If so, the icon stops changing and remains the same.
var/cops_arrived
/// Wanted level, affects the hud icon. Level 0 is default, and the level 0 icon is blank, so in case of no families gamemode (and thus no wanted level), this HUD element will never appear.
level = 2
/// Boolean, have the cops arrived? If so, the icon stops changing and remains the same.
var/cops_arrived = 0
/obj/screen/wanted/Initialize()
/atom/movable/screen/wanted/New()
return ..()
/atom/movable/screen/wanted/Initialize()
. = ..()
var/datum/game_mode/gang/F = SSticker.mode
level = F.wanted_level
cops_arrived = F.cops_arrived
update_icon()
/obj/screen/wanted/MouseEntered(location,control,params)
/atom/movable/screen/wanted/MouseEntered(location,control,params)
openToolTip(usr,src,params,title = name,content = desc, theme = "alerttooltipstyle")
/obj/screen/wanted/MouseExited()
/atom/movable/screen/wanted/MouseExited()
closeToolTip(usr)
/obj/screen/wanted/update_icon_state()
/atom/movable/screen/wanted/update_icon_state()
. = ..()
icon_state = "wanted_[level][cops_arrived ? "_active" : ""]"
-2
View File
@@ -81,8 +81,6 @@ GLOBAL_LIST_INIT(available_ui_styles, list(
plane_masters["[instance.plane]"] = instance
instance.backdrop(mymob)
owner.overlay_fullscreen("see_through_darkness", /obj/screen/fullscreen/see_through_darkness)
/datum/hud/Destroy()
if(mymob.hud_used == src)