mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
[MIRROR] move invisibility to defines (#10787)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a01b8efc9e
commit
94940d84ab
@@ -203,7 +203,7 @@ var/sc_safecode5 = "[rand(0,9)]"
|
||||
for(var/obj/O in T.contents)
|
||||
if(O.level != 1)
|
||||
continue
|
||||
if(O.invisibility == 101)
|
||||
if(O.invisibility == INVISIBILITY_ABSTRACT)
|
||||
src.consume(O)
|
||||
T.ChangeTurf(/turf/space)
|
||||
return
|
||||
|
||||
@@ -202,7 +202,7 @@ var/sc_safecode5 = "[rand(0,9)]"
|
||||
for(var/obj/O in T.contents)
|
||||
if(O.level != 1)
|
||||
continue
|
||||
if(O.invisibility == 101)
|
||||
if(O.invisibility == INVISIBILITY_ABSTRACT)
|
||||
src.consume(O)
|
||||
T.ChangeTurf(/turf/space)
|
||||
return
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
/obj/effect/step_trigger/teleporter/to_underdark
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
|
||||
/obj/effect/step_trigger/teleporter/to_underdark/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -88,7 +88,7 @@
|
||||
/obj/effect/step_trigger/teleporter/from_underdark
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
|
||||
/obj/effect/step_trigger/teleporter/from_underdark/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -142,7 +142,7 @@
|
||||
|
||||
// Invisible object that blocks z transfer to/from its turf and the turf above.
|
||||
/obj/effect/ceiling
|
||||
invisibility = 101 // nope cant see this
|
||||
invisibility = INVISIBILITY_ABSTRACT // nope cant see this
|
||||
anchored = 1
|
||||
|
||||
/obj/effect/ceiling/CheckExit(atom/movable/O as mob|obj, turf/target as turf)
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
// Invisible object that blocks z transfer to/from its turf and the turf above.
|
||||
/obj/effect/ceiling
|
||||
invisibility = 101 // nope cant see this
|
||||
invisibility = INVISIBILITY_ABSTRACT // nope cant see this
|
||||
anchored = 1
|
||||
|
||||
/obj/effect/ceiling/CheckExit(atom/movable/O as mob|obj, turf/target as turf)
|
||||
|
||||
@@ -235,7 +235,7 @@
|
||||
desc = "Spawns the mobs!"
|
||||
icon = 'icons/mob/screen1.dmi'
|
||||
icon_state = "x"
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
mouse_opacity = 0
|
||||
density = 0
|
||||
anchored = 1
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
icon = 'alienship.dmi'
|
||||
icon_state = null
|
||||
mouse_opacity = 0
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
//Shared!
|
||||
var/static/mission_mode
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/obj/effect/step_trigger/teleporter/to_mining
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
plane = TURF_PLANE
|
||||
layer = ABOVE_TURF_LAYER
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/obj/effect/step_trigger/teleporter/from_mining
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
plane = TURF_PLANE
|
||||
layer = ABOVE_TURF_LAYER
|
||||
|
||||
|
||||
@@ -187,7 +187,7 @@
|
||||
|
||||
/obj/machinery/atmospherics/pipe/hide(var/i)
|
||||
if(istype(loc, /turf/simulated))
|
||||
invisibility = i ? 101 : 0
|
||||
invisibility = i ? INVISIBILITY_ABSTRACT : INVISIBILITY_NONE
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/atmospherics/pipe/process()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#define TRANSITIONEDGE 1 // Distance from edge to move to another z-level.
|
||||
|
||||
// Invisibility constants. These should only be used for TRUE invisibility, AKA nothing living players touch
|
||||
#define INVISIBILITY_NONE 0
|
||||
#define INVISIBILITY_LIGHTING 20
|
||||
#define INVISIBILITY_LEVEL_ONE 35
|
||||
#define INVISIBILITY_LEVEL_TWO 45
|
||||
@@ -21,6 +22,7 @@
|
||||
#define SEE_INVISIBLE_OBSERVER 61
|
||||
|
||||
#define SEE_INVISIBLE_MINIMUM 5
|
||||
#define INVISIBILITY_BADMIN 99 // Used for objects that badmins should see
|
||||
#define INVISIBILITY_MAXIMUM 100
|
||||
#define INVISIBILITY_ABSTRACT 101 //only used for abstract objects, things that are not really there.
|
||||
|
||||
|
||||
@@ -1271,7 +1271,7 @@ var/mob/dview/dview_mob
|
||||
dview_mob.loc = null
|
||||
|
||||
/mob/dview
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
density = FALSE
|
||||
|
||||
anchored = TRUE
|
||||
|
||||
@@ -100,9 +100,9 @@
|
||||
|
||||
/obj/screen/movable/ability_master/update_icon()
|
||||
if(ability_objects.len)
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
else
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
/obj/screen/movable/ability_master/proc/add_ability(var/name_given)
|
||||
if(!name) return
|
||||
|
||||
@@ -416,19 +416,19 @@
|
||||
regenerate_icons()
|
||||
|
||||
/obj/screen/ling
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
/obj/screen/ling/chems
|
||||
name = "chemical storage"
|
||||
icon_state = "power_display"
|
||||
|
||||
/obj/screen/wizard
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
/obj/screen/wizard/instability
|
||||
name = "instability"
|
||||
icon_state = "instability-1"
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
|
||||
/obj/screen/wizard/energy
|
||||
name = "energy"
|
||||
|
||||
@@ -271,10 +271,10 @@ var/global/datum/emergency_shuttle_controller/emergency_shuttle = new
|
||||
return
|
||||
|
||||
/obj/effect/starender
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
/obj/effect/starspawner
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
var/spawndir = SOUTH
|
||||
var/spawning = 0
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
M.transforming = 1
|
||||
M.canmove = 0
|
||||
M.icon = null
|
||||
M.invisibility = 101
|
||||
M.invisibility = INVISIBILITY_ABSTRACT
|
||||
var/atom/movable/overlay/animation = new( M.loc )
|
||||
animation.icon_state = "blank"
|
||||
animation.icon = 'icons/mob/mob.dmi'
|
||||
@@ -94,7 +94,7 @@
|
||||
M.transforming = 1
|
||||
M.canmove = 0
|
||||
M.icon = null
|
||||
M.invisibility = 101
|
||||
M.invisibility = INVISIBILITY_ABSTRACT
|
||||
var/atom/movable/overlay/animation = new( M.loc )
|
||||
animation.icon_state = "blank"
|
||||
animation.icon = 'icons/mob/mob.dmi'
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
C.canmove = 0
|
||||
C.icon = null
|
||||
C.cut_overlays()
|
||||
C.invisibility = 101
|
||||
C.invisibility = INVISIBILITY_ABSTRACT
|
||||
var/atom/movable/overlay/animation = new /atom/movable/overlay( C.loc )
|
||||
animation.icon_state = "blank"
|
||||
animation.icon = 'icons/mob/mob.dmi'
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
icon_state = "m_shield_cult"
|
||||
light_color = "#B40000"
|
||||
light_range = 2
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
|
||||
/obj/effect/forcefield/cult/cultify()
|
||||
return
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
icon = 'icons/mob/mob.dmi'
|
||||
icon_state = "ghost-narsie"
|
||||
overlays = 0
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
to_chat(src, span_sinister("Even as a non-corporal being, you can feel Nar-Sie's presence altering you. You are now visible to everyone."))
|
||||
|
||||
/mob/living/cultify()
|
||||
@@ -25,7 +25,7 @@
|
||||
G.icon = 'icons/mob/mob.dmi'
|
||||
G.icon_state = "ghost-narsie"
|
||||
G.overlays = 0
|
||||
G.invisibility = 0
|
||||
G.invisibility = INVISIBILITY_NONE
|
||||
to_chat(G, span_sinister("You feel relieved as what's left of your soul finally escapes its prison of flesh."))
|
||||
|
||||
cult.harvested += G.mind
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
T.drop_from_inventory(W)
|
||||
|
||||
new /obj/effect/decal/remains/human(T.loc) //Spawns a skeleton
|
||||
T.invisibility = 101
|
||||
T.invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
var/atom/movable/overlay/animation = new /atom/movable/overlay( T.loc )
|
||||
animation.icon_state = "blank"
|
||||
|
||||
@@ -213,12 +213,12 @@
|
||||
if(client && hud_used)
|
||||
if(istype(back, /obj/item/technomancer_core)) //I reckon there's a better way of doing this.
|
||||
var/obj/item/technomancer_core/core = back
|
||||
wiz_energy_display.invisibility = 0
|
||||
wiz_energy_display.invisibility = INVISIBILITY_NONE
|
||||
var/ratio = core.energy / core.max_energy
|
||||
ratio = max(round(ratio, 0.05) * 100, 5)
|
||||
wiz_energy_display.icon_state = "wiz_energy[ratio]"
|
||||
else
|
||||
wiz_energy_display.invisibility = 101
|
||||
wiz_energy_display.invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
//Resonance Aperture
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
/obj/effect/temporary_effect/chroma
|
||||
name = "chroma"
|
||||
desc = "How are you examining what which cannot be seen?"
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
time_to_die = 2 MINUTES //Despawn after this time, if set.
|
||||
|
||||
/obj/effect/temporary_effect/chroma/Initialize(mapload, var/new_color = "#FFFFFF")
|
||||
|
||||
@@ -182,7 +182,7 @@
|
||||
on_impact(A)
|
||||
|
||||
density = FALSE
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
qdel(src)
|
||||
return 1
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
/obj/effect/temporary_effect/darkness
|
||||
name = "darkness"
|
||||
time_to_die = 2 MINUTES
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
light_range = 6
|
||||
light_power = -20
|
||||
light_on = TRUE
|
||||
|
||||
@@ -427,7 +427,7 @@ var/global/datum/controller/occupations/job_master
|
||||
// Implants get special treatment
|
||||
if(G.slot == "implant")
|
||||
var/obj/item/implant/I = G.spawn_item(H, H.client.prefs.gear[G.display_name])
|
||||
I.invisibility = 100
|
||||
I.invisibility = INVISIBILITY_MAXIMUM
|
||||
I.implant_loadout(H)
|
||||
continue
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ var/makejson = 1 //temp
|
||||
world.Reboot("Switching to [newmap]")
|
||||
|
||||
/obj/mapinfo
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
var/mapname = "thismap"
|
||||
var/decks = 4
|
||||
/proc/GetMapInfo()
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
// update the invisibility and icon
|
||||
/obj/machinery/bluespace_beacon/hide(var/intact)
|
||||
invisibility = intact ? 101 : 0
|
||||
invisibility = intact ? INVISIBILITY_ABSTRACT : INVISIBILITY_NONE
|
||||
update_icon()
|
||||
|
||||
// update the icon_state
|
||||
|
||||
@@ -165,7 +165,7 @@ var/specops_shuttle_timeleft = 0
|
||||
for(var/obj/effect/landmark/L in landmarks_list)
|
||||
if(L.name == "Marauder Exit")
|
||||
var/obj/effect/portal/P = new(L.loc)
|
||||
P.invisibility = 101//So it is not seen by anyone.
|
||||
P.invisibility = INVISIBILITY_ABSTRACT//So it is not seen by anyone.
|
||||
P.failchance = 0//So it has no fail chance when teleporting.
|
||||
P.target = pick(spawn_marauder)//Where the marauder will arrive.
|
||||
spawn_marauder.Remove(P.target)
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
// update the invisibility and icon
|
||||
/obj/machinery/magnetic_module/hide(var/intact)
|
||||
invisibility = intact ? 101 : 0
|
||||
invisibility = intact ? INVISIBILITY_ABSTRACT : INVISIBILITY_NONE
|
||||
update_icon()
|
||||
|
||||
// update the icon_state
|
||||
|
||||
@@ -54,7 +54,7 @@ GLOBAL_LIST_EMPTY(navbeacons) // no I don't like putting this in, but it will do
|
||||
// called when turf state changes
|
||||
// hide the object if turf is intact
|
||||
/obj/machinery/navbeacon/hide(var/intact)
|
||||
invisibility = intact ? 101 : 0
|
||||
invisibility = intact ? INVISIBILITY_ABSTRACT : INVISIBILITY_NONE
|
||||
update_icon()
|
||||
|
||||
// update the icon_state
|
||||
|
||||
@@ -2673,7 +2673,7 @@
|
||||
var/duration = text2num(href_list["duration"])
|
||||
var/mob/living/silicon/ai/O = new /mob/living/silicon/ai(src)
|
||||
var/cur_occupant = src.occupant
|
||||
O.invisibility = 0
|
||||
O.invisibility = INVISIBILITY_NONE
|
||||
O.canmove = 1
|
||||
O.name = AI.name
|
||||
O.real_name = AI.real_name
|
||||
|
||||
@@ -6,7 +6,7 @@ GLOBAL_LIST_EMPTY(bump_teleporters)
|
||||
icon_state = "x2"
|
||||
var/id = null //id of this bump_teleporter.
|
||||
var/id_target = null //id of bump_teleporter which this moves you to.
|
||||
invisibility = 101 //nope, can't see this
|
||||
invisibility = INVISIBILITY_ABSTRACT //nope, can't see this
|
||||
anchored = TRUE
|
||||
density = TRUE
|
||||
opacity = 0
|
||||
|
||||
@@ -33,8 +33,8 @@ var/global/list/image/splatter_cache=list()
|
||||
|
||||
/obj/effect/decal/cleanable/blood/clean_blood()
|
||||
fluorescent = 0
|
||||
if(invisibility != 100)
|
||||
invisibility = 100
|
||||
if(invisibility != INVISIBILITY_MAXIMUM)
|
||||
invisibility = INVISIBILITY_MAXIMUM
|
||||
amount = 0
|
||||
..(ignore=1)
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
var/list/gibdirections = list() //of lists
|
||||
var/fleshcolor //Used for gibbed humans.
|
||||
var/bloodcolor //Used for gibbed humans.
|
||||
invisibility = 99 // So a badmin can go view these by changing their see_invisible.
|
||||
invisibility = INVISIBILITY_BADMIN // So a badmin can go view these by changing their see_invisible.
|
||||
icon = 'icons/effects/map_effects.dmi'
|
||||
icon_state = "gibspawn"
|
||||
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
anchored = TRUE
|
||||
unacidable = TRUE
|
||||
simulated = FALSE
|
||||
invisibility = 100
|
||||
invisibility = INVISIBILITY_MAXIMUM
|
||||
var/delete_me = FALSE
|
||||
|
||||
/obj/effect/landmark/Initialize(mapload)
|
||||
. = ..()
|
||||
tag = text("landmark*[]", name)
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
switch(name) //some of these are probably obsolete
|
||||
if("monkey")
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
/obj/effect/manifest/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
/obj/effect/manifest/proc/manifest()
|
||||
var/dat = span_bold("Crew Manifest") + ":<BR>"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Players cannot see or interact with these.
|
||||
/obj/effect/map_effect
|
||||
anchored = TRUE
|
||||
invisibility = 99 // So a badmin can go view these by changing their see_invisible.
|
||||
invisibility = INVISIBILITY_BADMIN // So a badmin can go view these by changing their see_invisible.
|
||||
icon = 'icons/effects/map_effects.dmi'
|
||||
|
||||
// Below vars concern check_for_player_proximity() and is used to not waste effort if nobody is around to appreciate the effects.
|
||||
|
||||
@@ -46,7 +46,7 @@ when portals are shortly lived, or when portals are made to be obvious with spec
|
||||
|
||||
/obj/effect/map_effect/portal
|
||||
name = "portal subtype"
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
opacity = TRUE
|
||||
plane = TURF_PLANE
|
||||
layer = ABOVE_TURF_LAYER
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
name = "self deleting effect"
|
||||
desc = "How are you examining what which cannot be seen?"
|
||||
icon = 'icons/effects/effects.dmi'
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
var/time_to_die = 10 SECONDS // Afer which, it will delete itself.
|
||||
|
||||
/obj/effect/temporary_effect/Initialize(mapload)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
icon_state = "arrow_omni"
|
||||
|
||||
invisibility = 100
|
||||
invisibility = INVISIBILITY_MAXIMUM
|
||||
|
||||
// The atom which created this.
|
||||
var/atom/movable/creator
|
||||
|
||||
@@ -5,7 +5,7 @@ GLOBAL_LIST_EMPTY(mapped_autostrips_mob)
|
||||
/obj/effect/step_trigger
|
||||
var/affect_ghosts = 0
|
||||
var/stopper = 1 // stops throwers
|
||||
invisibility = 99 // nope cant see this shit
|
||||
invisibility = INVISIBILITY_BADMIN // nope cant see this shit
|
||||
plane = ABOVE_PLANE
|
||||
anchored = TRUE
|
||||
icon = 'icons/mob/screen1.dmi' //VS Edit
|
||||
@@ -331,7 +331,7 @@ But for now, for what it's been used for, it works.
|
||||
unacidable = 1
|
||||
layer = 99
|
||||
anchored = 1
|
||||
invisibility = 99
|
||||
invisibility = INVISIBILITY_BADMIN
|
||||
|
||||
|
||||
/obj/effect/autostriptarget/Initialize(mapload)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
anchored = TRUE
|
||||
unacidable = TRUE
|
||||
simulated = FALSE
|
||||
invisibility = 100
|
||||
invisibility = INVISIBILITY_MAXIMUM
|
||||
|
||||
/obj/effect/wire_deleter/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
name = "zone divider"
|
||||
icon = 'icons/mob/screen1.dmi'
|
||||
icon_state = "x3"
|
||||
invisibility = 101 //nope, can't see this
|
||||
invisibility = INVISIBILITY_ABSTRACT //nope, can't see this
|
||||
anchored = TRUE
|
||||
density = FALSE
|
||||
opacity = 0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/obj/effect/falling_effect
|
||||
name = DEVELOPER_WARNING_NAME
|
||||
desc = "no data"
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
anchored = TRUE
|
||||
density = FALSE
|
||||
unacidable = TRUE
|
||||
|
||||
@@ -199,7 +199,7 @@
|
||||
|
||||
O.mmi = W
|
||||
O.post_mmi_setup()
|
||||
O.invisibility = 0
|
||||
O.invisibility = INVISIBILITY_NONE
|
||||
O.custom_name = created_name
|
||||
O.updatename("Default")
|
||||
|
||||
|
||||
@@ -448,7 +448,7 @@ GLOBAL_LIST_EMPTY(micro_tunnels)
|
||||
name = "mouse hole spawner"
|
||||
icon = 'icons/obj/landmark_vr.dmi'
|
||||
icon_state = "blue-x"
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
var/chance_to_spawn = 25
|
||||
|
||||
|
||||
@@ -227,7 +227,7 @@ It also makes it so a ghost wont know where all the goodies/mobs are.
|
||||
total_spawns = -1
|
||||
destructible = 0
|
||||
anchored = TRUE
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
spawn_types = list(
|
||||
/mob/living/simple_mob/animal/passive/gaslamp = 20,
|
||||
// /mob/living/simple_mob/vore/otie/feral = 10,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
density = FALSE
|
||||
ghost_query_type = /datum/ghost_query/stowaway
|
||||
anchored = TRUE
|
||||
invisibility = 60
|
||||
invisibility = INVISIBILITY_OBSERVER
|
||||
|
||||
var/occupant_type = "stowaway"
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ FLOOR SAFES
|
||||
update_icon()
|
||||
|
||||
/obj/structure/safe/floor/hide(var/intact)
|
||||
invisibility = intact ? 101 : 0
|
||||
invisibility = intact ? INVISIBILITY_ABSTRACT : INVISIBILITY_NONE
|
||||
|
||||
/obj/structure/safe/floor/hides_under_flooring()
|
||||
return 1
|
||||
|
||||
@@ -85,15 +85,21 @@
|
||||
set name = "Invisimin"
|
||||
set category = "Admin.Game"
|
||||
set desc = "Toggles ghost-like invisibility (Don't abuse this)"
|
||||
|
||||
if(holder && mob)
|
||||
if(mob.invisibility > INVISIBILITY_OBSERVER)
|
||||
to_chat(mob, span_warning("You can't use this, your current invisibility level ([mob.invisibility]) is above the observer level ([INVISIBILITY_OBSERVER])."))
|
||||
return
|
||||
|
||||
if(mob.invisibility == INVISIBILITY_OBSERVER)
|
||||
mob.invisibility = initial(mob.invisibility)
|
||||
to_chat(mob, span_filter_system(span_danger("Invisimin off. Invisibility reset.")))
|
||||
mob.alpha = max(mob.alpha + 100, 255)
|
||||
else
|
||||
mob.invisibility = INVISIBILITY_OBSERVER
|
||||
to_chat(mob, span_filter_system(span_boldnotice("Invisimin on. You are now as invisible as a ghost.")))
|
||||
mob.alpha = max(mob.alpha - 100, 0)
|
||||
return
|
||||
|
||||
mob.invisibility = INVISIBILITY_OBSERVER
|
||||
to_chat(mob, span_filter_system(span_boldnotice("Invisimin on. You are now as invisible as a ghost.")))
|
||||
mob.alpha = max(mob.alpha - 100, 0)
|
||||
|
||||
|
||||
/client/proc/player_panel()
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
A.fluorescent = 2 //To prevent light crosstalk.
|
||||
if(A.invisibility)
|
||||
scanned[A] = A.invisibility
|
||||
A.invisibility = 0
|
||||
A.invisibility = INVISIBILITY_NONE
|
||||
stored_alpha[A] = A.alpha
|
||||
A.alpha = use_alpha
|
||||
if(istype(A, /obj/item))
|
||||
|
||||
@@ -265,7 +265,7 @@
|
||||
desc = "A trader can be moved to here!"
|
||||
icon = 'icons/obj/landmark_vr.dmi'
|
||||
icon_state = "blue-x"
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
mouse_opacity = 0
|
||||
density = 0
|
||||
anchored = 1
|
||||
|
||||
@@ -96,7 +96,7 @@ var/global/list/alt_farmanimals = list()
|
||||
return
|
||||
|
||||
my_image.mouse_opacity = 1
|
||||
my_image.invisibility = 0
|
||||
my_image.invisibility = INVISIBILITY_NONE
|
||||
my_image.alpha = alpha
|
||||
my_image.override = override
|
||||
|
||||
@@ -105,7 +105,7 @@ var/global/list/alt_farmanimals = list()
|
||||
return
|
||||
|
||||
my_image.mouse_opacity = 0
|
||||
my_image.invisibility = 101
|
||||
my_image.invisibility = INVISIBILITY_ABSTRACT
|
||||
my_image.alpha = 0
|
||||
my_image.override = FALSE
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ GLOBAL_LIST_EMPTY(recycler_locations)
|
||||
/obj/effect/recycler_beacon
|
||||
icon = 'code/modules/maint_recycler/icons/maint_recycler.dmi'
|
||||
icon_state = "marker"
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
mouse_opacity = 0
|
||||
density = 0
|
||||
anchored = 1
|
||||
@@ -39,7 +39,7 @@ GLOBAL_LIST_EMPTY(recycler_locations)
|
||||
/obj/effect/recycler_vendor_beacon
|
||||
icon = 'code/modules/maint_recycler/icons/maint_vendor.dmi'
|
||||
icon_state = "marker"
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
pixel_x = -8
|
||||
mouse_opacity = 0
|
||||
density = 0
|
||||
|
||||
@@ -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
|
||||
@@ -909,7 +910,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)
|
||||
@@ -1881,7 +1881,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)
|
||||
@@ -1920,7 +1920,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
|
||||
|
||||
@@ -388,7 +388,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"
|
||||
|
||||
@@ -1985,7 +1985,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)
|
||||
@@ -1999,7 +1999,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
|
||||
|
||||
..()
|
||||
|
||||
@@ -1472,7 +1472,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
|
||||
|
||||
|
||||
@@ -318,7 +318,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
|
||||
|
||||
@@ -12,7 +12,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)
|
||||
@@ -151,14 +151,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)
|
||||
@@ -205,7 +205,7 @@
|
||||
transforming = 1
|
||||
canmove = 0
|
||||
icon = null
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
for(var/t in organs)
|
||||
qdel(t)
|
||||
|
||||
@@ -229,7 +229,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)
|
||||
|
||||
@@ -259,7 +259,7 @@
|
||||
transforming = 1
|
||||
canmove = 0
|
||||
icon = null
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
for(var/t in organs)
|
||||
qdel(t)
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
// anchored = TRUE
|
||||
// unacidable = TRUE
|
||||
// simulated = FALSE
|
||||
// invisibility = 101
|
||||
// invisibility = INVISIBILITY_ABSTRACT
|
||||
// /// The name that the file will have once it's created.
|
||||
// var/file_name = "helloworld"
|
||||
// /// The contents of this file. Uses paper formatting.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/obj/effect/landmark/map_data
|
||||
name = "Unknown"
|
||||
desc = "An unknown location."
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
var/height = 1 ///< The number of Z-Levels in the map.
|
||||
var/turf/edge_type ///< What the map edge should be formed with. (null = world.turf)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Invisible object that blocks z transfer to/from its turf and the turf above.
|
||||
/obj/effect/ceiling
|
||||
invisibility = 101 // nope cant see this
|
||||
invisibility = INVISIBILITY_ABSTRACT // nope cant see this
|
||||
anchored = 1
|
||||
can_atmos_pass = ATMOS_PASS_PROC
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
/obj/machinery/atmospherics/pipe/zpipe/hide(var/i)
|
||||
if(istype(loc, /turf/simulated))
|
||||
invisibility = i ? 101 : 0
|
||||
invisibility = i ? INVISIBILITY_ABSTRACT : INVISIBILITY_NONE
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/atmospherics/pipe/zpipe/process()
|
||||
|
||||
@@ -474,7 +474,7 @@ var/const/CE_STABLE_THRESHOLD = 0.5
|
||||
B.viruses = source.data["viruses"]
|
||||
|
||||
B.fluorescent = 0
|
||||
B.invisibility = 0
|
||||
B.invisibility = INVISIBILITY_NONE
|
||||
return B
|
||||
|
||||
#undef BLOOD_MINIMUM_STOP_PROCESS
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//Space stragglers go here
|
||||
/obj/effect/overmap/visitable/sector/temporary
|
||||
name = "Deep Space"
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
known = FALSE
|
||||
in_space = TRUE
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ GLOBAL_LIST_INIT(possible_cable_coil_colours, list(
|
||||
//If underfloor, hide the cable
|
||||
/obj/structure/cable/hide(var/i)
|
||||
if(istype(loc, /turf))
|
||||
invisibility = i ? 101 : 0
|
||||
invisibility = i ? INVISIBILITY_ABSTRACT : INVISIBILITY_NONE
|
||||
update_icon()
|
||||
|
||||
/obj/structure/cable/hides_under_flooring()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
icon = 'icons/effects/effects.dmi'
|
||||
density = TRUE
|
||||
anchored = TRUE
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
var/obj/effect/fusion_em_field/parent
|
||||
var/mysize = 0
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
for(var/obj/O in contents)
|
||||
if(O.level != 1)
|
||||
continue
|
||||
if(O.invisibility == 101)
|
||||
if(O.invisibility == INVISIBILITY_ABSTRACT)
|
||||
O.singularity_act(src, current_size)
|
||||
ChangeTurf(get_base_turf_by_area(src))
|
||||
return 2
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
/obj/effect/engine_setup/
|
||||
name = "Engine Setup Marker"
|
||||
desc = "You shouldn't see this."
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
anchored = TRUE
|
||||
density = FALSE
|
||||
icon = 'icons/mob/screen1.dmi'
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
return ..()
|
||||
|
||||
/obj/machinery/power/terminal/hide(var/i)
|
||||
invisibility = i ? 101 : 0
|
||||
invisibility = i ? INVISIBILITY_ABSTRACT : INVISIBILITY_NONE
|
||||
icon_state = i ? "term-f" : "term"
|
||||
|
||||
/obj/machinery/power/terminal/hides_under_flooring()
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
var/frequency = 1
|
||||
hitscan = 1
|
||||
embed_chance = 0
|
||||
invisibility = 99 //beam projectiles are invisible as they are rendered by the effect engine
|
||||
invisibility = INVISIBILITY_BADMIN //beam projectiles are invisible as they are rendered by the effect engine
|
||||
light_range = 2
|
||||
light_power = 0.5
|
||||
light_color = "#FF0D00"
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
if("robot")
|
||||
new_mob = new /mob/living/silicon/robot(M.loc)
|
||||
new_mob.gender = M.gender
|
||||
new_mob.invisibility = 0
|
||||
new_mob.invisibility = INVISIBILITY_NONE
|
||||
new_mob.job = JOB_CYBORG
|
||||
var/mob/living/silicon/robot/Robot = new_mob
|
||||
Robot.mmi = new /obj/item/mmi(new_mob)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
//"Tracing" projectile
|
||||
/obj/item/projectile/test //Used to see if you can hit them.
|
||||
invisibility = 101 //Nope! Can't see me!
|
||||
invisibility = INVISIBILITY_ABSTRACT //Nope! Can't see me!
|
||||
hitscan = TRUE
|
||||
nodamage = TRUE
|
||||
damage = 0
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
// hide called by levelupdate if turf intact status changes
|
||||
// change visibility status and force update of icon
|
||||
/obj/structure/disposalconstruct/hide(var/intact)
|
||||
invisibility = (intact && level==1) ? 101: 0 // hide if floor is intact
|
||||
invisibility = (intact && level==1) ? INVISIBILITY_ABSTRACT: INVISIBILITY_NONE // hide if floor is intact
|
||||
update()
|
||||
|
||||
|
||||
|
||||
@@ -614,7 +614,7 @@
|
||||
// this allows the gas flushed to be tracked
|
||||
|
||||
/obj/structure/disposalholder
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
var/datum/gas_mixture/gas = null // gas used to flush, will appear at exit point
|
||||
var/active = 0 // true if the holder is moving, otherwise inactive
|
||||
dir = 0
|
||||
@@ -873,7 +873,7 @@
|
||||
// hide called by levelupdate if turf intact status changes
|
||||
// change visibility status and force update of icon
|
||||
/obj/structure/disposalpipe/hide(var/intact)
|
||||
invisibility = intact ? 101: 0 // hide if floor is intact
|
||||
invisibility = intact ? INVISIBILITY_ABSTRACT : INVISIBILITY_NONE // hide if floor is intact
|
||||
update_icon()
|
||||
|
||||
// update actual icon_state depending on visibility
|
||||
@@ -961,7 +961,7 @@
|
||||
var/obj/structure/disposalpipe/broken/P = new(src.loc)
|
||||
P.set_dir(D)
|
||||
|
||||
src.invisibility = 101 // make invisible (since we won't delete the pipe immediately)
|
||||
src.invisibility = INVISIBILITY_ABSTRACT // make invisible (since we won't delete the pipe immediately)
|
||||
var/obj/structure/disposalholder/H = locate() in src
|
||||
if(H)
|
||||
// holder was present
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
name = "asteroid spawn"
|
||||
icon = 'icons/mob/screen1.dmi'
|
||||
icon_state = "x2"
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
anchored = TRUE
|
||||
var/datum/rogue/asteroid/myasteroid
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
name = "mob spawn"
|
||||
icon = 'icons/mob/screen1.dmi'
|
||||
icon_state = "x"
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
anchored = TRUE
|
||||
var/mob/mymob
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
plane = MOB_PLANE
|
||||
layer = ABOVE_MOB_LAYER
|
||||
density = TRUE
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
var/obj/machinery/power/shield_generator/gen = null // Owning generator
|
||||
var/disabled_for = 0
|
||||
var/diffused_for = 0
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
//If underfloor, hide the cable^H^H diffuser
|
||||
/obj/machinery/shield_diffuser/hide(var/i)
|
||||
if(istype(loc, /turf))
|
||||
invisibility = i ? 101 : 0
|
||||
invisibility = i ? INVISIBILITY_ABSTRACT : INVISIBILITY_NONE
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/shield_diffuser/hides_under_flooring()
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
anchored = TRUE
|
||||
unacidable = TRUE
|
||||
simulated = FALSE
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
flags = SLANDMARK_FLAG_AUTOSET // We generally want to use current area/turf as base.
|
||||
|
||||
//ID of the landmark
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
for(var/obj/effect/landmark/L in landmarks_list)
|
||||
if(L.name == "Marauder Exit")
|
||||
var/obj/effect/portal/P = new(L.loc)
|
||||
P.invisibility = 101//So it is not seen by anyone.
|
||||
P.invisibility = INVISIBILITY_ABSTRACT //So it is not seen by anyone.
|
||||
P.failchance = 0//So it has no fail chance when teleporting.
|
||||
P.target = pick(spawn_marauder)//Where the marauder will arrive.
|
||||
spawn_marauder.Remove(P.target)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
opacity = 0
|
||||
density = TRUE
|
||||
unacidable = TRUE
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
/obj/effect/forcefield/bullet_act(var/obj/item/projectile/Proj, var/def_zone)
|
||||
var/turf/T = get_turf(src.loc)
|
||||
|
||||
@@ -1091,7 +1091,7 @@
|
||||
owner = new(src)
|
||||
owner.set_species(SPECIES_LLEILL)
|
||||
owner.species.produceCopy(owner.species.traits.Copy(),owner,null,FALSE)
|
||||
owner.invisibility = 101
|
||||
owner.invisibility = INVISIBILITY_ABSTRACT
|
||||
// Add listeners back
|
||||
owner.AddComponent(/datum/component/recursive_move)
|
||||
RegisterSignal(owner, COMSIG_OBSERVER_MOVED, PROC_REF(update_active_camera_screen), TRUE)
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
E.strength = 1
|
||||
E.density = TRUE
|
||||
E.anchored = TRUE
|
||||
E.invisibility = 0
|
||||
E.invisibility = INVISIBILITY_NONE
|
||||
spawn(10)
|
||||
UpdateMove()
|
||||
return 1
|
||||
@@ -49,7 +49,7 @@
|
||||
created_field.Add(E)
|
||||
E.anchored = TRUE
|
||||
E.density = TRUE
|
||||
E.invisibility = 0
|
||||
E.invisibility = INVISIBILITY_NONE
|
||||
|
||||
var/obj/effect/energy_field/E = created_field[1]
|
||||
E.loc = locate(T.x + 2,T.y + 2,T.z)
|
||||
|
||||
@@ -1,58 +1,58 @@
|
||||
/obj/effect/step_trigger/teleporter/to_mining
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
plane = TURF_PLANE
|
||||
layer = ABOVE_TURF_LAYER
|
||||
|
||||
/obj/effect/step_trigger/teleporter/from_mining
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
plane = TURF_PLANE
|
||||
layer = ABOVE_TURF_LAYER
|
||||
|
||||
/obj/effect/step_trigger/teleporter/to_solars
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
|
||||
/obj/effect/step_trigger/teleporter/from_solars
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
|
||||
/obj/effect/step_trigger/teleporter/wild
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
|
||||
/obj/effect/step_trigger/teleporter/to_underdark
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
|
||||
/obj/effect/step_trigger/teleporter/from_underdark
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
|
||||
/obj/effect/step_trigger/teleporter/to_plains
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
|
||||
/obj/effect/step_trigger/teleporter/from_plains
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
|
||||
/obj/effect/step_trigger/teleporter/planetary_fall/virgo3b
|
||||
|
||||
/obj/effect/step_trigger/lost_in_space
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
var/deathmessage = "You drift off into space, floating alone in the void until your life support runs out."
|
||||
|
||||
/obj/effect/step_trigger/lost_in_space/Trigger(var/atom/movable/A) //replacement for shuttle dump zones because there's no empty space levels to dump to
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
icon = 'alienship.dmi'
|
||||
icon_state = null
|
||||
mouse_opacity = 0
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
|
||||
//Shared!
|
||||
var/static/mission_mode
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/obj/effect/step_trigger/teleporter/to_mining
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
plane = TURF_PLANE
|
||||
layer = ABOVE_TURF_LAYER
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/obj/effect/step_trigger/teleporter/from_mining
|
||||
icon = 'icons/obj/structures/stairs_64x64.dmi'
|
||||
icon_state = ""
|
||||
invisibility = 0
|
||||
invisibility = INVISIBILITY_NONE
|
||||
plane = TURF_PLANE
|
||||
layer = ABOVE_TURF_LAYER
|
||||
|
||||
|
||||
@@ -461,7 +461,7 @@
|
||||
desc = "Spawns the mobs!"
|
||||
icon = 'icons/mob/screen1.dmi'
|
||||
icon_state = "x"
|
||||
invisibility = 101
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
mouse_opacity = 0
|
||||
density = 0
|
||||
anchored = 1
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user