[MIRROR] Staticpath [MDB ignore] (#12445)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-02-23 00:33:43 +01:00
committed by GitHub
co-authored by Kashargul
parent cc106f8032
commit ba5224fbcb
437 changed files with 5869 additions and 5220 deletions
+2 -2
View File
@@ -4,9 +4,9 @@
var/list/keys = list()
var/list/duplicates = list()
var/list/all_emotes = decls_repository.get_decls_of_subtype(/decl/emote)
var/list/all_emotes = GLOB.decls_repository.get_decls_of_subtype(/datum/decl/emote)
for(var/etype in all_emotes)
var/decl/emote/emote = all_emotes[etype]
var/datum/decl/emote/emote = all_emotes[etype]
if(!emote.key)
continue
if(emote.key in keys)
+5 -5
View File
@@ -159,7 +159,7 @@
var/list/edge_log = list()
if(active_edges)
for(var/connection_edge/E in SSair.active_edges)
for(var/datum/connection_edge/E in SSair.active_edges)
var/a_temp = E.A.air.temperature
var/a_moles = E.A.air.total_moles
var/a_vol = E.A.air.volume
@@ -173,8 +173,8 @@
var/b_gas = ""
// Two zones mixing
if(istype(E, /connection_edge/zone))
var/connection_edge/zone/Z = E
if(istype(E, /datum/connection_edge/zone))
var/datum/connection_edge/zone/Z = E
b_temp = Z.B.air.temperature
b_moles = Z.B.air.total_moles
b_vol = Z.B.air.volume
@@ -182,8 +182,8 @@
b_gas += "[gas]=[Z.B.air.gas[gas]]"
// Zone and unsimulated turfs mixing
if(istype(E, /connection_edge/unsimulated))
var/connection_edge/unsimulated/U = E
if(istype(E, /datum/connection_edge/unsimulated))
var/datum/connection_edge/unsimulated/U = E
b_temp = U.B.temperature
b_moles = "Unsim"
b_vol = "Unsim"
+3 -3
View File
@@ -1,11 +1,11 @@
/// converted unit test, maybe should be fully refactored
/datum/unit_test/posters_shall_have_legal_states/Run()
var/list/all_posters = decls_repository.get_decls_of_type(/decl/poster)
all_posters -= decls_repository.get_decl(/decl/poster/lewd) // Dumb exclusion for now. This really needs to become a valid poster instead of an illegaly made base type
var/list/all_posters = GLOB.decls_repository.get_decls_of_type(/datum/decl/poster)
all_posters -= GLOB.decls_repository.get_decl(/datum/decl/poster/lewd) // Dumb exclusion for now. This really needs to become a valid poster instead of an illegaly made base type
for(var/path in all_posters)
var/decl/poster/D = all_posters[path]
var/datum/decl/poster/D = all_posters[path]
var/obj/structure/sign/poster/P = /obj/structure/sign/poster // The base poster shows ALL subtypes except /lewd, so all posters should function here regardless!
var/icon/I = initial(P.icon)
if(D.icon_override)
+13 -13
View File
@@ -48,9 +48,9 @@
/datum/unit_test/chemical_reactions_shall_use_and_produce_valid_reagents/Run()
var/list/collection_id = list()
var/list/all_reactions = decls_repository.get_decls_of_subtype(/decl/chemical_reaction)
var/list/all_reactions = GLOB.decls_repository.get_decls_of_subtype(/datum/decl/chemical_reaction)
for(var/rtype in all_reactions)
var/decl/chemical_reaction/CR = all_reactions[rtype]
var/datum/decl/chemical_reaction/CR = all_reactions[rtype]
if(CR.name == REAGENT_DEVELOPER_WARNING) // Ignore these types as they are meant to be overridden
continue
@@ -123,9 +123,9 @@
RegisterSignal(instant_beaker.reagents, COMSIG_REAGENTS_HOLDER_REACTED, PROC_REF(get_signal_data))
//actual test
var/list/all_reactions = decls_repository.get_decls_of_subtype(/decl/chemical_reaction)
var/list/all_reactions = GLOB.decls_repository.get_decls_of_subtype(/datum/decl/chemical_reaction)
for(var/rtype in all_reactions)
var/decl/chemical_reaction/CR = all_reactions[rtype]
var/datum/decl/chemical_reaction/CR = all_reactions[rtype]
if(CR.name == REAGENT_DEVELOPER_WARNING) // Ignore these types as they are meant to be overridden
continue
@@ -136,15 +136,15 @@
if(!CR.result) // Cannot check for this
continue
if(istype(CR, /decl/chemical_reaction/instant/slime))
if(istype(CR, /datum/decl/chemical_reaction/instant/slime))
// slime time
var/decl/chemical_reaction/instant/slime/SR = CR
var/datum/decl/chemical_reaction/instant/slime/SR = CR
if(!SR.required)
continue
var/obj/item/slime_extract/E = new SR.required()
QDEL_SWAP(fake_beaker, E)
fake_beaker.reagents.maximum_volume = 5000
else if(istype(CR, /decl/chemical_reaction/distilling))
else if(istype(CR, /datum/decl/chemical_reaction/distilling))
// distilling
var/obj/distilling_tester/D = new()
QDEL_SWAP(fake_beaker, D)
@@ -169,9 +169,9 @@
QDEL_NULL(instant_beaker)
if(failed)
TEST_FAIL("One or more /decl/chemical_reaction subtypes conflict with another reaction.")
TEST_FAIL("One or more /datum/decl/chemical_reaction subtypes conflict with another reaction.")
/datum/unit_test/chemical_reactions_shall_not_conflict/proc/perform_reaction(var/decl/chemical_reaction/CR, var/list/inhib = list())
/datum/unit_test/chemical_reactions_shall_not_conflict/proc/perform_reaction(var/datum/decl/chemical_reaction/CR, var/list/inhib = list())
var/scale = 10
if(CR.result_amount < 1)
scale = 1 / CR.result_amount // Create at least 1 unit
@@ -195,7 +195,7 @@
for(var/RR in CR.required_reagents)
fake_beaker.reagents.add_reagent(RR, CR.required_reagents[RR] * scale)
if(!istype(CR, /decl/chemical_reaction/distilling))
if(!istype(CR, /datum/decl/chemical_reaction/distilling))
fake_beaker.reagents.handle_reactions()
break // Skip the next section if we're not distilling
@@ -222,11 +222,11 @@
if(!result_reactions.len)
// Nothing to check for inhibitors...
for(var/decl/chemical_reaction/test_react in result_reactions)
for(var/datum/decl/chemical_reaction/test_react in result_reactions)
return RESULT_REACTION_FAILED
// Otherwise we check the resulting reagents and use their inhibitor this time!
for(var/decl/chemical_reaction/test_react in result_reactions)
for(var/datum/decl/chemical_reaction/test_react in result_reactions)
if(!test_react)
continue
if(!test_react.inhibitors.len)
@@ -240,7 +240,7 @@
return RESULT_REACTION_SUCCESS // SUCCESS using all inhibitors!
// No inhibiting reagent worked...
for(var/decl/chemical_reaction/test_react in result_reactions)
for(var/datum/decl/chemical_reaction/test_react in result_reactions)
TEST_NOTICE(src, "[CR.type]: Reagents - Used inhibitor for: [test_react]")
return RESULT_REACTION_FAILED