Skip to content

Commit

Permalink
bugfix: T-rays can now see hiden safes. (#3755)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daeberdir authored Oct 25, 2023
1 parent 743545a commit 10f3d78
Show file tree
Hide file tree
Showing 44 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion code/ATMOSPHERICS/pipes/cap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/obj/machinery/atmospherics/pipe/cap/hide(var/i)
if(level == 1 && istype(loc, /turf/simulated))
invisibility = i ? 101 : 0
invisibility = i ? INVISIBILITY_ABSTRACT : 0
update_icon()

/obj/machinery/atmospherics/pipe/cap/pipeline_expansion()
Expand Down
2 changes: 1 addition & 1 deletion code/ATMOSPHERICS/pipes/manifold.dm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

/obj/machinery/atmospherics/pipe/manifold/hide(var/i)
if(level == 1 && istype(loc, /turf/simulated))
invisibility = i ? 101 : 0
invisibility = i ? INVISIBILITY_ABSTRACT : 0

/obj/machinery/atmospherics/pipe/manifold/pipeline_expansion()
return list(node1, node2, node3)
Expand Down
2 changes: 1 addition & 1 deletion code/ATMOSPHERICS/pipes/manifold4w.dm
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@

/obj/machinery/atmospherics/pipe/manifold4w/hide(var/i)
if(level == 1 && istype(loc, /turf/simulated))
invisibility = i ? 101 : 0
invisibility = i ? INVISIBILITY_ABSTRACT : 0

/obj/machinery/atmospherics/pipe/manifold4w/atmos_init()
..()
Expand Down
2 changes: 1 addition & 1 deletion code/ATMOSPHERICS/pipes/simple/pipe_simple.dm
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,4 @@

/obj/machinery/atmospherics/pipe/simple/hide(var/i)
if(level == 1 && istype(loc, /turf/simulated))
invisibility = i ? 101 : 0
invisibility = i ? INVISIBILITY_ABSTRACT : 0
1 change: 0 additions & 1 deletion code/__DEFINES/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@

#define STATUS_UPDATE_NONE 0
#define STATUS_UPDATE_ALL (~0)
#define INVISIBILITY_ABSTRACT 101

// Incorporeal movement
#define INCORPOREAL_NONE 0
Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/sight.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@


#define INVISIBILITY_MAXIMUM 100
#define INVISIBILITY_ABSTRACT 101

//Some mob defines below
#define AI_CAMERA_LUMINOSITY 6
Expand Down
2 changes: 1 addition & 1 deletion code/__HELPERS/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new)
GLOB.dview_mob.loc = null

/mob/dview
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
density = 0
move_force = 0
pull_force = 0
Expand Down
2 changes: 1 addition & 1 deletion code/datums/diseases/transformation.dm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
affected_mob.canmove = 0
affected_mob.icon = null
affected_mob.overlays.Cut()
affected_mob.invisibility = 101
affected_mob.invisibility = INVISIBILITY_ABSTRACT
for(var/obj/item/W in affected_mob)
if(istype(W, /obj/item/implant))
qdel(W)
Expand Down
4 changes: 2 additions & 2 deletions code/game/dna/genes/monkey.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
H.SetStunned(2 SECONDS)
H.canmove = FALSE
H.icon = null
H.invisibility = 101
H.invisibility = INVISIBILITY_ABSTRACT
var/has_primitive_form = H.dna.species.primitive_form // cache this
if(has_primitive_form)
H.set_species(has_primitive_form)
Expand Down Expand Up @@ -60,7 +60,7 @@
H.SetStunned(2 SECONDS)
H.canmove = 0
H.icon = null
H.invisibility = 101
H.invisibility = INVISIBILITY_ABSTRACT
var/has_greater_form = H.dna.species.greater_form //cache this
if(has_greater_form)
H.set_species(has_greater_form)
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/Beacon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
return ..()

/obj/machinery/bluespace_beacon/hide(var/intact)
invisibility = intact ? 101 : 0
invisibility = intact ? INVISIBILITY_ABSTRACT : 0
update_icon()

// update the icon_state
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/computer/pod.dm
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
var/obj/effect/landmark/L = thing
if(L.name == "Marauder Exit")
var/obj/effect/portal/P = new(L.loc, pick(spawn_marauder))
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.can_mecha_pass = TRUE
spawn_marauder.Remove(P.target)
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/magnet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

// update the invisibility and icon
/obj/machinery/magnetic_module/hide(intact)
invisibility = intact ? 101 : 0
invisibility = intact ? INVISIBILITY_ABSTRACT : 0
updateicon()

// update the icon_state
Expand Down
6 changes: 3 additions & 3 deletions code/game/objects/effects/bump_teleporter.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ GLOBAL_LIST_EMPTY(bump_teleporters)
name = "bump-teleporter"
icon = 'icons/mob/screen_gen.dmi'
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
var/id = null //id of this bump_teleporter.
var/id_target = null //id of bump_teleporter which this moves you to.
invisibility = INVISIBILITY_ABSTRACT //nope, can't see this
anchored = 1
density = 1
opacity = 0
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/effects/landmarks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

..()
set_tag()
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT

switch(name) //some of these are probably obsolete
if("start")
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/effects/mines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
if(triggered)
return
triggered = 1
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
mineEffect(victim)
qdel(src)

Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/devices/scanners.dm
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ REAGENT SCANNER

var/temp_invisibility = in_turf_object.invisibility
var/temp_alpha = in_turf_object.alpha
if(temp_invisibility == 101 || temp_invisibility == INVISIBILITY_ANOMALY)
if(temp_invisibility == INVISIBILITY_ABSTRACT || temp_invisibility == INVISIBILITY_ANOMALY)
in_turf_object.invisibility = 0
in_turf_object.alpha = 128
in_turf_object.drain_act_protected = TRUE
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/weapons/storage/backpack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@

/obj/item/storage/backpack/satchel_flat/hide(var/intact)
if(intact)
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
anchored = 1 //otherwise you can start pulling, cover it, and drag around an invisible backpack.
icon_state = "[initial(icon_state)]2"
else
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/structures/safe.dm
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ GLOBAL_LIST_EMPTY(safes)
hide(T.intact)

/obj/structure/safe/floor/hide(intact)
invisibility = intact ? INVISIBILITY_MAXIMUM : 0
invisibility = intact ? INVISIBILITY_ABSTRACT : 0

/**
* # Safe Internals
Expand Down
2 changes: 1 addition & 1 deletion code/modules/arcade/mob_hunt/mob_avatar.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/obj/effect/nanomob
name = "Nano-Mob Avatar" //will be overridden by the mob datum name value when created
desc = "A wild Nano-Mob appeared! Hit it with your PDA with the game open to attempt to capture it!"
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
alpha = 128
anchored = 1 //just in case
density = 0
Expand Down
2 changes: 1 addition & 1 deletion code/modules/assembly/infrared.dm
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
left--
if(left < 1)
if(!(visible))
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
else
invisibility = FALSE
else
Expand Down
2 changes: 1 addition & 1 deletion code/modules/awaymissions/map_rng.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "map loader"
icon = 'icons/mob/screen_gen.dmi'
icon_state = "x2"
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
anchored = 1
density = 0
opacity = 0
Expand Down
2 changes: 1 addition & 1 deletion code/modules/awaymissions/mission_code/beach.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
density = 0
anchored = 1
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT

var/water_frequency = 15
var/water_timer = 0
Expand Down
2 changes: 1 addition & 1 deletion code/modules/awaymissions/mission_code/spacehotel.dm
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
name = "Deep Space Hotel 419"
icon = 'icons/mob/screen_gen.dmi'
icon_state = "x"
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
anchored = 1
density = 0
opacity = 0
Expand Down
2 changes: 1 addition & 1 deletion code/modules/awaymissions/mission_code/stationCollision.dm
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ GLOBAL_VAR_INIT(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(T.baseturf)
return
Expand Down
6 changes: 3 additions & 3 deletions code/modules/awaymissions/zvis.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
name = "level reference"
icon = 'icons/mob/screen_gen.dmi'
icon_state = "x2"
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT

var/id = null
var/obj/effect/levelref/other = null
Expand Down Expand Up @@ -46,7 +46,7 @@
// Used by /turf/simulated/floor/indestructible/upperlevel and /obj/effect/view_portal/visual
// to know if the world changed on the remote side
/obj/effect/portal_sensor
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
var/light_hash = -1
var/triggered_this_tick = 0
var/datum/owner // owner that receive signals
Expand Down Expand Up @@ -154,7 +154,7 @@
name = "portal target"
icon = 'icons/mob/screen_gen.dmi'
icon_state = "x2"
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
anchored = 1

var/id = null // id of other portal turf we connect to
Expand Down
2 changes: 1 addition & 1 deletion code/modules/clothing/spacesuits/chronosuit.dm
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
name = "Chronosuit View"
density = 0
anchored = 1
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
opacity = 0
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
var/mob/holder = null
Expand Down
2 changes: 1 addition & 1 deletion code/modules/events/spacevine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
eat(user)

/obj/structure/spacevine_controller
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
var/list/obj/structure/spacevine/vines = list()
var/list/growth_queue = list()
var/spread_multiplier = 5
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mining/mine_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/obj/effect/light_emitter
name = "Light emitter"
anchored = TRUE
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
var/set_luminosity = 8
var/set_cap = 0

Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/camera/camera.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
status_flags = GODMODE // You can't damage it.
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
see_in_dark = 8
invisibility = 101 // No one can see us
invisibility = INVISIBILITY_ABSTRACT // No one can see us
sight = SEE_SELF
move_on_shuttle = 0

Expand Down
4 changes: 2 additions & 2 deletions code/modules/mob/living/carbon/alien/death.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
notransform = 1
canmove = 0
icon = null
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT

animation = new(loc)
animation.icon_state = "blank"
Expand All @@ -29,7 +29,7 @@
notransform = 1
canmove = 0
icon = null
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
dust_animation()
new /obj/effect/decal/remains/xeno(loc)
GLOB.dead_mob_list -= src
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/brain/death.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
notransform = 1
canmove = 0
icon = null
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT

gibs(loc, dna)

Expand Down
6 changes: 3 additions & 3 deletions code/modules/mob/living/carbon/human/death.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
notransform = 1
canmove = 0
icon = null
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
if(!ismachineperson(src))
animation = new(loc)
animation.icon_state = "blank"
Expand Down Expand Up @@ -52,7 +52,7 @@
notransform = 1
canmove = 0
icon = null
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
dust_animation()
QDEL_IN(src, 0)
return TRUE
Expand All @@ -77,7 +77,7 @@
notransform = 1
canmove = 0
icon = null
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT

animation = new(loc)
animation.icon_state = "blank"
Expand Down
6 changes: 3 additions & 3 deletions code/modules/mob/living/death.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
notransform = 1
canmove = 0
icon = null
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT

playsound(src.loc, 'sound/goonstation/effects/gib.ogg', 50, 1)
gibs(loc, dna)
Expand All @@ -25,7 +25,7 @@
notransform = 1
canmove = 0
icon = null
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
QDEL_IN(src, 0)
return TRUE

Expand All @@ -36,7 +36,7 @@
notransform = 1
canmove = 0
icon = null
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
QDEL_IN(src, 0)
return TRUE

Expand Down
4 changes: 2 additions & 2 deletions code/modules/mob/living/silicon/death.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
notransform = 1
canmove = 0
icon = null
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT

animation = new(loc)
animation.icon_state = "blank"
Expand All @@ -28,7 +28,7 @@
notransform = 1
canmove = 0
icon = null
invisibility = 101
invisibility = INVISIBILITY_ABSTRACT
dust_animation()
GLOB.dead_mob_list -= src
QDEL_IN(src, 15)
Expand Down
Loading

0 comments on commit 10f3d78

Please sign in to comment.