mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 23:17:28 +01:00
move invisibility to defines (#17612)
* move Invisibility to defines * . * .
This commit is contained in:
@@ -93,17 +93,18 @@
|
||||
var/last_revive_notification = null // world.time of last notification, used to avoid spamming players from defibs or cloners.
|
||||
var/cleanup_timer // Refernece to a timer that will delete this mob if no client returns
|
||||
|
||||
/mob/observer/dead/Initialize(mapload, aghost = FALSE)
|
||||
|
||||
appearance = loc
|
||||
invisibility = INVISIBILITY_OBSERVER
|
||||
layer = BELOW_MOB_LAYER
|
||||
plane = PLANE_GHOSTS
|
||||
alpha = 127
|
||||
sight = SEE_TURFS | SEE_MOBS | SEE_OBJS | SEE_SELF
|
||||
see_invisible = SEE_INVISIBLE_OBSERVER
|
||||
|
||||
/mob/observer/dead/Initialize(mapload, aghost = FALSE)
|
||||
|
||||
appearance = loc
|
||||
admin_ghosted = aghost
|
||||
|
||||
sight |= SEE_TURFS | SEE_MOBS | SEE_OBJS | SEE_SELF
|
||||
see_invisible = SEE_INVISIBLE_OBSERVER
|
||||
see_in_dark = world.view //I mean. I don't even know if byond has occlusion culling... but...
|
||||
|
||||
var/turf/T
|
||||
@@ -900,7 +901,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
to_chat(src, span_info("You are now visible!"))
|
||||
|
||||
plane = (plane == PLANE_GHOSTS) ? PLANE_WORLD : PLANE_GHOSTS
|
||||
invisibility = (plane == PLANE_WORLD) ? 0 : INVISIBILITY_OBSERVER
|
||||
invisibility = (plane == PLANE_WORLD) ? INVISIBILITY_NONE : INVISIBILITY_OBSERVER
|
||||
|
||||
// Give the ghost a cult icon which should be visible only to itself
|
||||
toggle_icon("cult")
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
transforming = 1
|
||||
canmove = 0
|
||||
icon = null
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
update_canmove()
|
||||
dead_mob_list -= src
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
transforming = 1
|
||||
canmove = 0
|
||||
icon = null
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
animation = new(loc)
|
||||
animation.icon_state = "blank"
|
||||
@@ -53,7 +53,7 @@
|
||||
transforming = 1
|
||||
canmove = 0
|
||||
icon = null
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
animation = new(loc)
|
||||
animation.icon_state = "blank"
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
see_in_dark = 7
|
||||
status_flags = GODMODE
|
||||
plane = PLANE_AI_EYE
|
||||
invisibility = INVISIBILITY_EYE
|
||||
|
||||
var/mob/owner = null
|
||||
var/list/visibleChunks = list()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Alien larva are quite simple.
|
||||
/mob/living/carbon/alien/Life()
|
||||
|
||||
set invisibility = 0
|
||||
set invisibility = INVISIBILITY_NONE
|
||||
|
||||
if (transforming) return
|
||||
if(!loc) return
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
var/chemical_darksight = 0
|
||||
|
||||
/mob/living/carbon/human/Life()
|
||||
set invisibility = 0
|
||||
set invisibility = INVISIBILITY_NONE
|
||||
set background = BACKGROUND_ENABLED
|
||||
|
||||
if (transforming)
|
||||
@@ -1868,7 +1868,7 @@
|
||||
if(mind && mind.changeling)
|
||||
mind.changeling.regenerate()
|
||||
if(hud_used)
|
||||
ling_chem_display.invisibility = 0
|
||||
ling_chem_display.invisibility = INVISIBILITY_NONE
|
||||
// ling_chem_display.maptext = "<div align='center' valign='middle' style='position:relative; top:0px; left:6px'><font color='#dd66dd'>[round(mind.changeling.chem_charges)]</font></div>"
|
||||
switch(mind.changeling.chem_storage)
|
||||
if(1 to 50)
|
||||
@@ -1907,7 +1907,7 @@
|
||||
ling_chem_display.icon_state = "ling_chems80e"
|
||||
else
|
||||
if(mind && hud_used)
|
||||
ling_chem_display.invisibility = 101
|
||||
ling_chem_display.invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
/mob/living/carbon/human/handle_shock()
|
||||
..()
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
)
|
||||
spawn (50)
|
||||
if(H.lleill_display)
|
||||
H.lleill_display.invisibility = 0
|
||||
H.lleill_display.invisibility = INVISIBILITY_NONE
|
||||
H.lleill_display.icon_state = "lleill-4"
|
||||
|
||||
/datum/species/shapeshifter/hanner/add_inherent_verbs(var/mob/living/carbon/human/H)
|
||||
|
||||
@@ -219,13 +219,13 @@
|
||||
)
|
||||
spawn (50)
|
||||
if(H.lleill_display)
|
||||
H.lleill_display.invisibility = 0
|
||||
H.lleill_display.invisibility = INVISIBILITY_NONE
|
||||
H.lleill_display.icon_state = "lleill-4"
|
||||
|
||||
/datum/species/proc/update_lleill_hud(var/mob/living/carbon/human/H)
|
||||
var/relative_energy = ((lleill_energy/lleill_energy_max)*100)
|
||||
if(H.lleill_display)
|
||||
H.lleill_display.invisibility = 0
|
||||
H.lleill_display.invisibility = INVISIBILITY_NONE
|
||||
switch(relative_energy)
|
||||
if(0 to 24)
|
||||
H.lleill_display.icon_state = "lleill-0"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/obj/screen/lleill
|
||||
name = "glamour"
|
||||
icon = 'icons/mob/lleill_hud.dmi'
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
|
||||
/obj/screen/movable/ability_master/lleill
|
||||
|
||||
@@ -222,7 +222,7 @@
|
||||
var/l_icon = 0
|
||||
var/e_icon = 0
|
||||
|
||||
H.shadekin_display.invisibility = 0
|
||||
H.shadekin_display.invisibility = INVISIBILITY_NONE
|
||||
if(T)
|
||||
var/brightness = T.get_lumcount() //Brightness in 0.0 to 1.0
|
||||
var/darkness = 1-brightness //Invert
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
/obj/screen/shadekin
|
||||
name = "shadekin status"
|
||||
icon = 'icons/mob/shadekin_hud.dmi'
|
||||
invisibility = 101
|
||||
|
||||
|
||||
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
/obj/screen/movable/ability_master/shadekin
|
||||
name = "Shadekin Abilities"
|
||||
|
||||
@@ -1980,7 +1980,7 @@
|
||||
|
||||
/datum/species/xenochimera/proc/update_xenochimera_hud(var/mob/living/carbon/human/H, var/danger, var/feral)
|
||||
if(H.xenochimera_danger_display)
|
||||
H.xenochimera_danger_display.invisibility = 0
|
||||
H.xenochimera_danger_display.invisibility = INVISIBILITY_NONE
|
||||
if(danger && feral)
|
||||
H.xenochimera_danger_display.icon_state = "danger11"
|
||||
else if(danger && !feral)
|
||||
@@ -1994,7 +1994,7 @@
|
||||
|
||||
/obj/screen/xenochimera
|
||||
icon = 'icons/mob/chimerahud.dmi'
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
/obj/screen/xenochimera/danger_level
|
||||
name = "danger level"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/mob/living/Life()
|
||||
set invisibility = 0
|
||||
set invisibility = INVISIBILITY_NONE
|
||||
set background = BACKGROUND_ENABLED
|
||||
|
||||
..()
|
||||
|
||||
@@ -1474,7 +1474,7 @@
|
||||
drop.dryname = "dried something"
|
||||
drop.drydesc = "It's dry and crusty. The janitor isn't doing their job."
|
||||
drop.fluorescent = 0
|
||||
drop.invisibility = 0
|
||||
drop.invisibility = INVISIBILITY_NONE
|
||||
//else
|
||||
// come up with drips for other mobs someday
|
||||
|
||||
|
||||
@@ -320,7 +320,7 @@ var/list/ai_verbs_default = list(
|
||||
use_power = USE_POWER_ACTIVE
|
||||
power_channel = EQUIP
|
||||
var/mob/living/silicon/ai/powered_ai = null
|
||||
invisibility = 100
|
||||
invisibility = INVISIBILITY_MAXIMUM
|
||||
|
||||
/obj/machinery/ai_powersupply/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
name = "Null-Field"
|
||||
icon = 'icons/effects/effects.dmi'
|
||||
icon_state = "shield-old"
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
|
||||
/spell/aoe_turf/conjure/zeropointwell
|
||||
name = "Zero-Point Well"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/mob/living/silicon/robot/Life()
|
||||
set invisibility = 0
|
||||
set invisibility = INVISIBILITY_NONE
|
||||
|
||||
if (transforming)
|
||||
return
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
if(istype(loc, /turf/unsimulated/map))
|
||||
if(!invisibility)
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
child_om_marker.invisibility = 0
|
||||
child_om_marker.invisibility = INVISIBILITY_NONE
|
||||
ai_holder.base_wander_delay = 50
|
||||
ai_holder.wander_delay = 1
|
||||
melee_damage_lower = 50
|
||||
@@ -137,7 +137,7 @@
|
||||
movement_cooldown = 5
|
||||
|
||||
else if(invisibility)
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
child_om_marker.invisibility = INVISIBILITY_ABSTRACT
|
||||
ai_holder.base_wander_delay = 5
|
||||
ai_holder.wander_delay = 1
|
||||
@@ -1257,7 +1257,7 @@
|
||||
desc = "It's waiting to accept treats!"
|
||||
icon = 'icons/obj/flesh_machines.dmi'
|
||||
icon_state = "mouth"
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
anchored = TRUE
|
||||
pixel_x = -16
|
||||
var/id = "mouth_a" //same id will be linked
|
||||
|
||||
@@ -143,9 +143,9 @@
|
||||
//Invisibility-managed
|
||||
if(invis_toggle)
|
||||
if(want && invisibility)
|
||||
invisibility = 0 //Does not need a mouse_opacity toggle because these are for effects
|
||||
invisibility = INVISIBILITY_NONE //Does not need a mouse_opacity toggle because these are for effects
|
||||
else if(!want && !invisibility)
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
//Alpha-managed
|
||||
else
|
||||
if(want && !alpha)
|
||||
@@ -179,7 +179,7 @@
|
||||
layer = LAYER_HUD_BASE+1 // This MUST be above the lighting plane_master
|
||||
color = null //To break lighting when visible (this is sorta backwards)
|
||||
alpha = 0 //Starts full opaque
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
invis_toggle = TRUE
|
||||
|
||||
/obj/screen/plane_master/lighting
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
var/datum/tgui_module/late_choices/late_choices_dialog = null
|
||||
universal_speak = 1
|
||||
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
density = FALSE
|
||||
stat = 2
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
canmove = 0
|
||||
stunned = 1
|
||||
icon = null
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
for(var/t in organs)
|
||||
qdel(t)
|
||||
var/atom/movable/overlay/animation = new /atom/movable/overlay( loc )
|
||||
@@ -64,7 +64,7 @@
|
||||
transforming = 1
|
||||
canmove = 0
|
||||
icon = null
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
return ..()
|
||||
|
||||
/mob/proc/AIize(var/move = TRUE)
|
||||
@@ -95,7 +95,7 @@
|
||||
newloc = loc_landmark.loc
|
||||
|
||||
var/mob/living/silicon/ai/O = new (newloc, FALSE, using_map.default_law_type, null, 1)//No MMI but safety is in effect.
|
||||
O.invisibility = 0
|
||||
O.invisibility = INVISIBILITY_NONE
|
||||
O.aiRestorePowerRoutine = 0
|
||||
|
||||
if(mind)
|
||||
@@ -147,14 +147,14 @@
|
||||
transforming = 1
|
||||
canmove = 0
|
||||
icon = null
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
for(var/t in organs)
|
||||
qdel(t)
|
||||
|
||||
var/mob/living/silicon/robot/O = new /mob/living/silicon/robot(loc)
|
||||
|
||||
O.gender = gender
|
||||
O.invisibility = 0
|
||||
O.invisibility = INVISIBILITY_NONE
|
||||
|
||||
if(mind) //TODO
|
||||
mind.transfer_to(O)
|
||||
@@ -201,7 +201,7 @@
|
||||
transforming = 1
|
||||
canmove = 0
|
||||
icon = null
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
for(var/t in organs)
|
||||
qdel(t)
|
||||
|
||||
@@ -225,7 +225,7 @@
|
||||
transforming = 1
|
||||
canmove = 0
|
||||
icon = null
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
for(var/t in organs) //this really should not be necessary
|
||||
qdel(t)
|
||||
|
||||
@@ -255,7 +255,7 @@
|
||||
transforming = 1
|
||||
canmove = 0
|
||||
icon = null
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
for(var/t in organs)
|
||||
qdel(t)
|
||||
|
||||
Reference in New Issue
Block a user