Merge branch 'master' into upstream-merge-11110

This commit is contained in:
Nadyr
2021-07-16 19:09:43 -04:00
committed by GitHub
529 changed files with 1341 additions and 1359 deletions

View File

@@ -3,10 +3,10 @@
desc = "An energy shield used to contain hull breaches."
icon = 'icons/effects/effects.dmi'
icon_state = "shield-old"
density = 1
density = TRUE
opacity = 0
anchored = 1
unacidable = 1
anchored = TRUE
unacidable = TRUE
can_atmos_pass = ATMOS_PASS_NO
var/const/max_health = 200
var/health = max_health //The shield can only take so much beating (prevents perma-prisons)
@@ -35,7 +35,7 @@
/obj/machinery/shield/Destroy()
opacity = 0
density = 0
density = FALSE
update_nearby_tiles()
..()
@@ -120,9 +120,9 @@
desc = "Used to seal minor hull breaches."
icon = 'icons/obj/objects.dmi'
icon_state = "shieldoff"
density = 1
density = TRUE
opacity = 0
anchored = 0
anchored = FALSE
pressure_resistance = 2*ONE_ATMOSPHERE
req_access = list(access_engine)
var/const/max_health = 100
@@ -310,12 +310,12 @@
if(active)
to_chat(user, "<font color='blue'>The [src] shuts off!</font>")
src.shields_down()
anchored = 0
anchored = FALSE
else
if(istype(get_turf(src), /turf/space)) return //No wrenching these in space!
playsound(src, W.usesound, 100, 1)
to_chat(user, "<font color='blue'>You secure the [src] to the floor!</font>")
anchored = 1
anchored = TRUE
else if(istype(W, /obj/item/weapon/card/id) || istype(W, /obj/item/device/pda))

View File

@@ -14,10 +14,10 @@
icon = 'icons/obj/machines/shielding.dmi'
icon_state = "shield"
alpha = 100
anchored = 1
anchored = TRUE
plane = MOB_PLANE
layer = ABOVE_MOB_LAYER
density = 0
density = FALSE
can_atmos_pass = ATMOS_PASS_DENSITY
var/obj/machinery/shield_gen/my_gen = null
var/strength = 0 // in Renwicks
@@ -101,13 +101,13 @@
ticks_recovering = min(ticks_recovering + 2, 10)
if(strength < 1) // We broke
density = 0
density = FALSE
ticks_recovering = 10
strength = 0
else if(amount > 0) // Healing damage.
if(strength >= 1)
density = 1
density = TRUE
if(density != old_density)
update_icon()

View File

@@ -6,10 +6,10 @@
desc = "An impenetrable field of energy, capable of blocking anything as long as it's active."
icon = 'icons/obj/machines/shielding_vr.dmi'
icon_state = "shield"
anchored = 1
anchored = TRUE
plane = MOB_PLANE
layer = ABOVE_MOB_LAYER
density = 1
density = TRUE
invisibility = 0
var/obj/machinery/power/shield_generator/gen = null // Owning generator
var/disabled_for = 0

View File

@@ -4,8 +4,8 @@
desc = "A shield generator."
icon = 'icons/obj/stationobjs.dmi'
icon_state = "Shield_Gen"
anchored = 0
density = 1
anchored = FALSE
density = TRUE
req_access = list(access_engine_equip)
var/active = 0
var/power = 0
@@ -224,9 +224,9 @@
desc = "An energy shield."
icon = 'icons/effects/effects.dmi'
icon_state = "shieldwall"
anchored = 1
density = 1
unacidable = 1
anchored = TRUE
density = TRUE
unacidable = TRUE
light_range = 3
var/needs_power = 0
var/active = 1

View File

@@ -8,7 +8,7 @@
icon = 'icons/obj/machines/shielding.dmi'
icon_state = "capacitor"
var/active = 0
density = 1
density = TRUE
var/stored_charge = 0 //not to be confused with power cell charge, this is in Joules
var/last_stored_charge = 0
var/time_since_fail = 100

View File

@@ -8,8 +8,8 @@
use_power = USE_POWER_ACTIVE
idle_power_usage = 25 // Previously 100.
active_power_usage = 500 // Previously 2000
anchored = 1
density = 0
anchored = TRUE
density = FALSE
level = 1
var/alarm = 0
var/enabled = 1

View File

@@ -7,7 +7,7 @@
var/field_radius = 3
var/max_field_radius = 150
var/list/field = list()
density = 1
density = TRUE
var/locked = 0
var/average_field_strength = 0
var/strengthen_rate = 0.2

View File

@@ -7,7 +7,7 @@
icon = 'icons/obj/machines/shielding_vr.dmi'
icon_state = "generator0"
circuit = /obj/item/weapon/circuitboard/shield_generator
density = 1
density = TRUE
var/datum/wires/shield_generator/wires = null
var/list/field_segments = list() // List of all shield segments owned by this generator.
var/list/damaged_segments = list() // List of shield segments that have failed and are currently regenerating.