mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #4270 from Baystation12/master
Merge master into Dev
This commit is contained in:
@@ -28,6 +28,11 @@ var/list/CounterDoorDirections = list(SOUTH,EAST) //Which directions doors turfs
|
|||||||
var/progress = "nothing"
|
var/progress = "nothing"
|
||||||
|
|
||||||
|
|
||||||
|
/datum/gas_mixture/zone
|
||||||
|
Del()
|
||||||
|
CRASH("Something tried to delete a zone's air!")
|
||||||
|
. = ..()
|
||||||
|
|
||||||
//CREATION AND DELETION
|
//CREATION AND DELETION
|
||||||
/zone/New(turf/start)
|
/zone/New(turf/start)
|
||||||
. = ..()
|
. = ..()
|
||||||
@@ -47,7 +52,8 @@ var/list/CounterDoorDirections = list(SOUTH,EAST) //Which directions doors turfs
|
|||||||
|
|
||||||
//Generate the gas_mixture for use in txhis zone by using the average of the gases
|
//Generate the gas_mixture for use in txhis zone by using the average of the gases
|
||||||
//defined at startup.
|
//defined at startup.
|
||||||
air = new
|
//Changed to try and find the source of the error.
|
||||||
|
air = new /datum/gas_mixture/zone()
|
||||||
air.group_multiplier = contents.len
|
air.group_multiplier = contents.len
|
||||||
for(var/turf/simulated/T in contents)
|
for(var/turf/simulated/T in contents)
|
||||||
if(!T.air)
|
if(!T.air)
|
||||||
@@ -102,6 +108,10 @@ var/list/CounterDoorDirections = list(SOUTH,EAST) //Which directions doors turfs
|
|||||||
C.A.zone = null
|
C.A.zone = null
|
||||||
if(C.B.zone == src)
|
if(C.B.zone == src)
|
||||||
C.B.zone = null
|
C.B.zone = null
|
||||||
|
if(C.zone_A == src)
|
||||||
|
C.zone_A = null
|
||||||
|
if(C.zone_B == src)
|
||||||
|
C.zone_B = null
|
||||||
direct_connections = null
|
direct_connections = null
|
||||||
|
|
||||||
//Ensuring the zone list doesn't get clogged with null values.
|
//Ensuring the zone list doesn't get clogged with null values.
|
||||||
@@ -182,6 +192,10 @@ var/list/CounterDoorDirections = list(SOUTH,EAST) //Which directions doors turfs
|
|||||||
if(!unsim_air_needs_update && air_unsim) //if air_unsim doesn't exist, we need to create it even if we don't need an update.
|
if(!unsim_air_needs_update && air_unsim) //if air_unsim doesn't exist, we need to create it even if we don't need an update.
|
||||||
return
|
return
|
||||||
|
|
||||||
|
//Tempfix.
|
||||||
|
if(!air)
|
||||||
|
return
|
||||||
|
|
||||||
unsim_air_needs_update = 0
|
unsim_air_needs_update = 0
|
||||||
|
|
||||||
if(!air_unsim)
|
if(!air_unsim)
|
||||||
@@ -781,6 +795,9 @@ zone/proc/Rebuild()
|
|||||||
final_arrangement[current_identifier] = list(current)
|
final_arrangement[current_identifier] = list(current)
|
||||||
|
|
||||||
else
|
else
|
||||||
|
//Sanity check.
|
||||||
|
if(!islist(final_arrangement[current_identifier]))
|
||||||
|
final_arrangement[current_identifier] = list()
|
||||||
final_arrangement[current_identifier] += current
|
final_arrangement[current_identifier] += current
|
||||||
|
|
||||||
//lazy but fast
|
//lazy but fast
|
||||||
|
|||||||
@@ -401,6 +401,8 @@
|
|||||||
name = "power control module"
|
name = "power control module"
|
||||||
icon_state = "power_mod"
|
icon_state = "power_mod"
|
||||||
desc = "Heavy-duty switching circuits for power control."
|
desc = "Heavy-duty switching circuits for power control."
|
||||||
|
m_amt = 50
|
||||||
|
g_amt = 50
|
||||||
|
|
||||||
/obj/item/weapon/module/id_auth
|
/obj/item/weapon/module/id_auth
|
||||||
name = "\improper ID authentication module"
|
name = "\improper ID authentication module"
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ var/global/list/autolathe_recipes = list( \
|
|||||||
new /obj/item/weapon/airlock_electronics(), \
|
new /obj/item/weapon/airlock_electronics(), \
|
||||||
new /obj/item/weapon/airalarm_electronics(), \
|
new /obj/item/weapon/airalarm_electronics(), \
|
||||||
new /obj/item/weapon/firealarm_electronics(), \
|
new /obj/item/weapon/firealarm_electronics(), \
|
||||||
|
new /obj/item/weapon/module/power_control(), \
|
||||||
new /obj/item/stack/sheet/metal(), \
|
new /obj/item/stack/sheet/metal(), \
|
||||||
new /obj/item/stack/sheet/glass(), \
|
new /obj/item/stack/sheet/glass(), \
|
||||||
new /obj/item/stack/sheet/rglass(), \
|
new /obj/item/stack/sheet/rglass(), \
|
||||||
|
|||||||
@@ -348,10 +348,11 @@ var/list/slot_equipment_priority = list( \
|
|||||||
return
|
return
|
||||||
else
|
else
|
||||||
var/deathtime = world.time - src.timeofdeath
|
var/deathtime = world.time - src.timeofdeath
|
||||||
var/mob/dead/observer/G = src
|
if(istype(src,/mob/dead/observer))
|
||||||
if(G.has_enabled_antagHUD == 1 && config.antag_hud_restricted)
|
var/mob/dead/observer/G = src
|
||||||
usr << "\blue <B>Upon using the antagHUD you forfeighted the ability to join the round.</B>"
|
if(G.has_enabled_antagHUD == 1 && config.antag_hud_restricted)
|
||||||
return
|
usr << "\blue <B>Upon using the antagHUD you forfeighted the ability to join the round.</B>"
|
||||||
|
return
|
||||||
var/deathtimeminutes = round(deathtime / 600)
|
var/deathtimeminutes = round(deathtime / 600)
|
||||||
var/pluralcheck = "minute"
|
var/pluralcheck = "minute"
|
||||||
if(deathtimeminutes == 0)
|
if(deathtimeminutes == 0)
|
||||||
|
|||||||
@@ -1451,7 +1451,7 @@ datum/design/chemsprayer
|
|||||||
build_type = PROTOLATHE
|
build_type = PROTOLATHE
|
||||||
materials = list("$metal" = 5000, "$glass" = 1000)
|
materials = list("$metal" = 5000, "$glass" = 1000)
|
||||||
reliability_base = 100
|
reliability_base = 100
|
||||||
build_path = "/obj/item/weapon/chemsprayer"
|
build_path = "/obj/item/weapon/reagent_containers/spray/chemsprayer"
|
||||||
|
|
||||||
datum/design/rapidsyringe
|
datum/design/rapidsyringe
|
||||||
name = "Rapid Syringe Gun"
|
name = "Rapid Syringe Gun"
|
||||||
|
|||||||
Reference in New Issue
Block a user