mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
More As Anythings
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
///Returns an assoc list in plain english as a string
|
||||
/proc/english_list_assoc(list/input)
|
||||
var/output
|
||||
for(var/item as anything in input)
|
||||
for(var/item in input)
|
||||
output += "[item] = [input[item]] "
|
||||
|
||||
return trim_right(output)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
),
|
||||
)
|
||||
|
||||
for(var/icon_file as anything in essentials)
|
||||
for(var/icon_state as anything in essentials[icon_file])
|
||||
for(var/icon_file in essentials)
|
||||
for(var/icon_state in essentials[icon_file])
|
||||
insert_icon(icon_state, uni_icon(icon_file, icon_state))
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
var/need_to_check = FALSE
|
||||
if(length(whitelisted_deparments))
|
||||
for(var/department as anything in whitelisted_deparments)
|
||||
for(var/department in whitelisted_deparments)
|
||||
if(is_path_in_list(department, job_datum.departments_list))
|
||||
need_to_check = TRUE
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
if(SSquirks?.initialized)
|
||||
// And yes we need to clean all the quirk datums every time
|
||||
mannequin.cleanse_quirk_datums()
|
||||
for(var/quirk_name as anything in all_quirks)
|
||||
for(var/quirk_name in all_quirks)
|
||||
var/datum/quirk/quirk_type = SSquirks.quirks[quirk_name]
|
||||
if(!(initial(quirk_type.quirk_flags) & QUIRK_CHANGES_APPEARANCE))
|
||||
continue
|
||||
|
||||
@@ -58,19 +58,19 @@ GLOBAL_LIST_EMPTY(ckey_to_aooc_name)
|
||||
|
||||
var/list/listeners = list()
|
||||
|
||||
for(var/mind as anything in get_antag_minds(/datum/antagonist))
|
||||
for(var/mind in get_antag_minds(/datum/antagonist))
|
||||
var/datum/mind/antag_mind = mind
|
||||
if(!antag_mind.current || !antag_mind.current.client || isnewplayer(antag_mind.current))
|
||||
continue
|
||||
listeners[antag_mind.current.client] = AOOC_LISTEN_PLAYER
|
||||
|
||||
for(var/iterated_player as anything in GLOB.player_list)
|
||||
for(var/iterated_player in GLOB.player_list)
|
||||
var/mob/iterated_mob = iterated_player
|
||||
//Admins with muted OOC do not get to listen to AOOC, but normal players do, as it could be admins talking important stuff to them
|
||||
if(iterated_mob.client?.holder && !iterated_mob.client?.holder.deadmined && iterated_mob.client?.prefs?.chat_toggles & CHAT_OOC)
|
||||
listeners[iterated_mob.client] = AOOC_LISTEN_ADMIN
|
||||
|
||||
for(var/iterated_listener as anything in listeners)
|
||||
for(var/iterated_listener in listeners)
|
||||
var/client/iterated_client = iterated_listener
|
||||
var/mode = listeners[iterated_listener]
|
||||
var/color = (!anon && CONFIG_GET(flag/allow_admin_ooccolor) && iterated_client?.prefs?.read_preference(/datum/preference/color/ooc_color)) ? iterated_client?.prefs?.read_preference(/datum/preference/color/ooc_color) : GLOB.AOOC_COLOR
|
||||
@@ -88,7 +88,7 @@ GLOBAL_LIST_EMPTY(ckey_to_aooc_name)
|
||||
else //otherwise just toggle it
|
||||
GLOB.aooc_allowed = !GLOB.aooc_allowed
|
||||
var/list/listeners = list()
|
||||
for(var/mind as anything in get_antag_minds(/datum/antagonist))
|
||||
for(var/mind in get_antag_minds(/datum/antagonist))
|
||||
var/datum/mind/antag_mind = mind
|
||||
if(!antag_mind.current || !antag_mind.current.client || isnewplayer(antag_mind.current))
|
||||
continue
|
||||
|
||||
@@ -66,7 +66,7 @@ GLOBAL_LIST_EMPTY(ckey_to_sooc_name)
|
||||
|
||||
var/list/listeners = list()
|
||||
|
||||
for(var/iterated_player as anything in GLOB.player_list)
|
||||
for(var/iterated_player in GLOB.player_list)
|
||||
var/mob/iterated_mob = iterated_player
|
||||
//Admins with muted OOC do not get to listen to SOOC, but normal players do, as it could be admins talking important stuff to them
|
||||
if(iterated_mob.client?.holder && !iterated_mob.client?.holder?.deadmined && iterated_mob.client?.prefs?.chat_toggles & CHAT_OOC)
|
||||
@@ -77,7 +77,7 @@ GLOBAL_LIST_EMPTY(ckey_to_sooc_name)
|
||||
if(job_lookup[mob_mind.assigned_role?.title])
|
||||
listeners[iterated_mob.client] = SOOC_LISTEN_PLAYER
|
||||
|
||||
for(var/iterated_listener as anything in listeners)
|
||||
for(var/iterated_listener in listeners)
|
||||
var/client/iterated_client = iterated_listener
|
||||
var/mode = listeners[iterated_listener]
|
||||
var/color = (!anon && CONFIG_GET(flag/allow_admin_ooccolor) && iterated_client?.prefs?.read_preference(/datum/preference/color/ooc_color)) ? iterated_client?.prefs?.read_preference(/datum/preference/color/ooc_color) : GLOB.SOOC_COLOR
|
||||
@@ -97,7 +97,7 @@ GLOBAL_LIST_EMPTY(ckey_to_sooc_name)
|
||||
GLOB.sooc_allowed = !GLOB.sooc_allowed
|
||||
var/list/listeners = list()
|
||||
var/static/list/job_lookup = list(JOB_SECURITY_OFFICER = TRUE, JOB_WARDEN = TRUE, JOB_DETECTIVE = TRUE, JOB_HEAD_OF_SECURITY = TRUE, JOB_CAPTAIN = TRUE, JOB_BLUESHIELD = TRUE)
|
||||
for(var/iterated_player as anything in GLOB.player_list)
|
||||
for(var/iterated_player in GLOB.player_list)
|
||||
var/mob/iterated_mob = iterated_player
|
||||
if(!iterated_mob.client?.holder?.deadmined)
|
||||
listeners[iterated_mob.client] = TRUE
|
||||
@@ -106,7 +106,7 @@ GLOBAL_LIST_EMPTY(ckey_to_sooc_name)
|
||||
var/datum/mind/mob_mind = iterated_mob.mind
|
||||
if(job_lookup[mob_mind.assigned_role])
|
||||
listeners[iterated_mob.client] = TRUE
|
||||
for(var/iterated_listener as anything in listeners)
|
||||
for(var/iterated_listener in listeners)
|
||||
var/client/iterated_client = iterated_listener
|
||||
to_chat(iterated_client, span_oocplain("<b>The SOOC channel has been globally [GLOB.sooc_allowed ? "enabled" : "disabled"].</b>"))
|
||||
|
||||
|
||||
@@ -85,9 +85,9 @@
|
||||
data["card_name"] = inserted_card.name
|
||||
|
||||
data["armaments_list"] = list()
|
||||
for(var/armament_category as anything in SSarmaments.entries)
|
||||
for(var/armament_category in SSarmaments.entries)
|
||||
var/list/armament_subcategories = list()
|
||||
for(var/subcategory as anything in SSarmaments.entries[armament_category][CATEGORY_ENTRY])
|
||||
for(var/subcategory in SSarmaments.entries[armament_category][CATEGORY_ENTRY])
|
||||
var/list/subcategory_items = list()
|
||||
for(var/datum/armament_entry/armament_entry as anything in SSarmaments.entries[armament_category][CATEGORY_ENTRY][subcategory])
|
||||
if(products && !(armament_entry.type in products))
|
||||
|
||||
@@ -80,11 +80,11 @@
|
||||
data["self_paid"] = !!self_paid
|
||||
data["armaments_list"] = list()
|
||||
|
||||
for(var/armament_category as anything in SSarmaments.entries)
|
||||
for(var/armament_category in SSarmaments.entries)
|
||||
|
||||
var/list/armament_subcategories = list()
|
||||
|
||||
for(var/subcategory as anything in SSarmaments.entries[armament_category][CATEGORY_ENTRY])
|
||||
for(var/subcategory in SSarmaments.entries[armament_category][CATEGORY_ENTRY])
|
||||
var/list/subcategory_items = list()
|
||||
for(var/datum/armament_entry/armament_entry as anything in SSarmaments.entries[armament_category][CATEGORY_ENTRY][subcategory])
|
||||
if(products && !(armament_entry.type in products))
|
||||
|
||||
@@ -192,7 +192,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/computer/cryopod, 32)
|
||||
return ..()
|
||||
|
||||
/obj/machinery/cryopod/proc/find_control_computer(urgent = FALSE)
|
||||
for(var/cryo_console as anything in GLOB.cryopod_computers)
|
||||
for(var/cryo_console in GLOB.cryopod_computers)
|
||||
var/obj/machinery/computer/cryopod/console = cryo_console
|
||||
if(get_area(console) == get_area(src))
|
||||
control_computer_weakref = WEAKREF(console)
|
||||
@@ -589,7 +589,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/cryopod/prison, 18)
|
||||
/obj/effect/mob_spawn/ghost_role/proc/find_control_computer()
|
||||
if(!computer_area)
|
||||
return
|
||||
for(var/cryo_console as anything in GLOB.cryopod_computers)
|
||||
for(var/cryo_console in GLOB.cryopod_computers)
|
||||
var/obj/machinery/computer/cryopod/console = cryo_console
|
||||
var/area/area = get_area(cryo_console) // Define moment
|
||||
if(area.type == computer_area)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/// Cleans up any invalid languages. Typically happens on language renames and codedels.
|
||||
/datum/preferences/proc/sanitize_languages()
|
||||
var/languages_edited = FALSE
|
||||
for(var/lang_path as anything in languages)
|
||||
for(var/lang_path in languages)
|
||||
if(!lang_path)
|
||||
languages.Remove(lang_path)
|
||||
languages_edited = TRUE
|
||||
|
||||
@@ -1809,7 +1809,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/structure/sign/poster/contraband/korpstech, 32)
|
||||
message = span_warning("[src]'s delicate fabric is shredded by [washer]! How terrible!")
|
||||
sound_effect_path = 'sound/effects/cloth_rip.ogg'
|
||||
sound_effect_volume = 30
|
||||
for (var/zone as anything in cover_flags2body_zones(body_parts_covered))
|
||||
for (var/zone in cover_flags2body_zones(body_parts_covered))
|
||||
take_damage_zone(zone, limb_integrity * 1.1, BRUTE) // fucking shreds it
|
||||
|
||||
var/turf/our_turf = get_turf(src)
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
damaged_sm.name = "partially delaminated supermatter crystal"
|
||||
damaged_sm.desc = "This crystal has seen better days, the glow seems off and the shards look brittle. Central says it's still \"relatively safe.\" They'd never lie to us, right?"
|
||||
damaged_sm.explosion_power += 5 // if you fuck up again, yeesh
|
||||
for(var/current_gas_mix as anything in damaged_sm.current_gas_behavior)
|
||||
for(var/current_gas_mix in damaged_sm.current_gas_behavior)
|
||||
var/datum/sm_gas/gas_mix = damaged_sm.current_gas_behavior[current_gas_mix]
|
||||
if(istype(gas_mix, /datum/sm_gas/freon))
|
||||
gas_mix.heat_resistance += 0.4
|
||||
|
||||
@@ -200,7 +200,7 @@
|
||||
var/nearby_ore = 0
|
||||
var/is_there_a_thumper_too = FALSE
|
||||
for(var/turf/nearby_turf in orange(ore_spawn_range, src))
|
||||
for(var/ore as anything in nearby_turf.contents)
|
||||
for(var/ore in nearby_turf.contents)
|
||||
if(istype(ore, /obj/item/stack/ore))
|
||||
nearby_ore += 1
|
||||
continue
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
new_nif.rewards_points = persistence.stored_rewards_points
|
||||
|
||||
var/list/persistent_nifsoft_paths = list()
|
||||
for(var/text as anything in splittext(persistence.persistent_nifsofts, "&"))
|
||||
for(var/text in splittext(persistence.persistent_nifsofts, "&"))
|
||||
var/datum/nifsoft/nifsoft_to_add = text2path(text)
|
||||
if(!ispath(nifsoft_to_add, /datum/nifsoft) || !initial(nifsoft_to_add.able_to_keep))
|
||||
continue
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
for(var/trait in hud_traits)
|
||||
ADD_TRAIT(linked_mob, trait, GLASSES_TRAIT)
|
||||
|
||||
for(var/trait as anything in added_eyewear_traits)
|
||||
for(var/trait in added_eyewear_traits)
|
||||
ADD_TRAIT(linked_mob, trait, TRAIT_NIFSOFT)
|
||||
|
||||
linked_mob.update_sight()
|
||||
|
||||
@@ -173,8 +173,8 @@
|
||||
/obj/machinery/vending/proc/remove_products(list/paths_to_remove)
|
||||
if(!length(paths_to_remove))
|
||||
return
|
||||
for(var/typepath as anything in products)
|
||||
for(var/to_remove as anything in paths_to_remove)
|
||||
for(var/typepath in products)
|
||||
for(var/to_remove in paths_to_remove)
|
||||
if(ispath(typepath, to_remove))
|
||||
products.Remove(typepath)
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ SUBSYSTEM_DEF(opposing_force)
|
||||
if(!(opposing_force in submitted_applications))
|
||||
return "ERROR"
|
||||
var/position = 1
|
||||
for(var/opfor as anything in submitted_applications)
|
||||
for(var/opfor in submitted_applications)
|
||||
if(opposing_force == opfor)
|
||||
break
|
||||
position++
|
||||
|
||||
@@ -107,7 +107,7 @@ SUBSYSTEM_DEF(player_ranks)
|
||||
* `donator_status` and `max_save_slots` once donators are loaded.
|
||||
*/
|
||||
/datum/controller/subsystem/player_ranks/proc/update_all_prefs_donator_status()
|
||||
for(var/ckey as anything in GLOB.preferences_datums)
|
||||
for(var/ckey in GLOB.preferences_datums)
|
||||
update_prefs_donator_status(GLOB.preferences_datums[ckey])
|
||||
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
if(!length(contents))
|
||||
return
|
||||
|
||||
for(var/obj/target_item as anything in contents)
|
||||
for(var/obj/target_item in contents)
|
||||
target_item.forceMove(get_turf(src))
|
||||
|
||||
/obj/structure/millstone/attack_hand_secondary(mob/user, list/modifiers)
|
||||
|
||||
@@ -304,7 +304,7 @@
|
||||
|
||||
var/materials_to_transfer = list()
|
||||
var/list/temporary_materials_list = use_or_delete_recipe_requirements(things_to_use, recipe_to_follow)
|
||||
for(var/material as anything in temporary_materials_list)
|
||||
for(var/material in temporary_materials_list)
|
||||
materials_to_transfer[material] += temporary_materials_list[material]
|
||||
|
||||
var/obj/newly_created_thing
|
||||
@@ -344,7 +344,7 @@
|
||||
for(var/obj/requirement_item as anything in things_to_use)
|
||||
if(isstack(requirement_item))
|
||||
var/stack_type
|
||||
for(var/recipe_thing_to_reference as anything in recipe_to_follow.recipe_requirements)
|
||||
for(var/recipe_thing_to_reference in recipe_to_follow.recipe_requirements)
|
||||
if(!istype(requirement_item, recipe_thing_to_reference))
|
||||
continue
|
||||
stack_type = recipe_thing_to_reference
|
||||
@@ -364,7 +364,7 @@
|
||||
qdel(requirement_item)
|
||||
continue
|
||||
|
||||
for(var/custom_material as anything in requirement_item.custom_materials)
|
||||
for(var/custom_material in requirement_item.custom_materials)
|
||||
materials_to_transfer += custom_material
|
||||
qdel(requirement_item)
|
||||
|
||||
|
||||
@@ -822,7 +822,7 @@
|
||||
material_list[GET_MATERIAL_REF(search_stack.material_type)] = SHEET_MATERIAL_AMOUNT
|
||||
|
||||
else
|
||||
for(var/material as anything in search_stack.custom_materials)
|
||||
for(var/material in search_stack.custom_materials)
|
||||
material_list[material] = SHEET_MATERIAL_AMOUNT
|
||||
|
||||
if(!search_stack.use(1))
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
)
|
||||
continue
|
||||
|
||||
for(var/department_type as anything in job.departments_list)
|
||||
for(var/department_type in job.departments_list)
|
||||
var/datum/job_department/department = departments_by_type[department_type]
|
||||
|
||||
if(!department)
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
/obj/item/wargame_projector/item_ctrl_click(mob/user)
|
||||
if(tgui_alert(user,"Clear all currently active holograms?", "Hologram Removal", list("Yes", "No")) == "Yes")
|
||||
for(var/hologram as anything in projections)
|
||||
for(var/hologram in projections)
|
||||
qdel(hologram)
|
||||
|
||||
/// Can we place a hologram at the target location?
|
||||
|
||||
@@ -23,19 +23,19 @@
|
||||
var/item = new item_path(carbon_holder.loc)
|
||||
var/success = FALSE
|
||||
// Checking for nodrop and seeing if there's an empty slot
|
||||
for (var/slot as anything in all_items[item_path])
|
||||
for (var/slot in all_items[item_path])
|
||||
success = force_equip_item(carbon_holder, item, slot, check_item = FALSE)
|
||||
if (success)
|
||||
break
|
||||
// Checking for nodrop
|
||||
for (var/slot as anything in all_items[item_path])
|
||||
for (var/slot in all_items[item_path])
|
||||
success = force_equip_item(carbon_holder, item, slot)
|
||||
if (success)
|
||||
break
|
||||
|
||||
if ((item_path in forced_items) && !success)
|
||||
// Checking for nodrop failed, shove it into the first available slot, even if it has nodrop
|
||||
for (var/slot as anything in all_items[item_path])
|
||||
for (var/slot in all_items[item_path])
|
||||
success = force_equip_item(carbon_holder, item, slot, FALSE)
|
||||
if (success)
|
||||
break
|
||||
@@ -45,7 +45,7 @@
|
||||
continue
|
||||
var/item = new item_path(carbon_holder.loc)
|
||||
var/success = FALSE
|
||||
for(var/slot as anything in stored_items[item_path])
|
||||
for(var/slot in stored_items[item_path])
|
||||
success = carbon_holder.equip_to_storage(item, slot, indirect_action = TRUE)
|
||||
if(success)
|
||||
break
|
||||
|
||||
@@ -4,7 +4,7 @@ ADMIN_VERB(ping_deadmins, R_ADMIN, "Ping De-adminned Admins", "Send a notificati
|
||||
return
|
||||
|
||||
var/list/admins_notified = list()
|
||||
for(var/ckey as anything in GLOB.deadmins)
|
||||
for(var/ckey in GLOB.deadmins)
|
||||
var/client/deadmin_client = GLOB.directory[ckey]
|
||||
if(!deadmin_client)
|
||||
continue
|
||||
|
||||
@@ -78,7 +78,7 @@ ADMIN_VERB(find_nullspaced_objects, R_DEBUG, "Find Nullspaced Objects", "Popup a
|
||||
|
||||
var/list/nullspace_tagged_objects = list()
|
||||
var/list/strings = list()
|
||||
for(var/object_type as anything in no_duplicates)
|
||||
for(var/object_type in no_duplicates)
|
||||
var/list/sub_list = no_duplicates[object_type]
|
||||
var/atom/object = sub_list["object"]
|
||||
var/refcount = sub_list["refcount"]
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
"packs" = list()
|
||||
)
|
||||
|
||||
for(var/armament_category as anything in SSarmaments.entries)//babe! it's 4pm, time for the company importing logic
|
||||
for(var/subcategory as anything in SSarmaments.entries[armament_category][CATEGORY_ENTRY])
|
||||
for(var/armament_category in SSarmaments.entries)//babe! it's 4pm, time for the company importing logic
|
||||
for(var/subcategory in SSarmaments.entries[armament_category][CATEGORY_ENTRY])
|
||||
if(armament_category in allowed_categories)
|
||||
for(var/datum/armament_entry/armament_entry as anything in SSarmaments.entries[armament_category][CATEGORY_ENTRY][subcategory])
|
||||
meme_pack_data["Company Imports"]["packs"] += list(list(
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
if (ispath(preferences?.pref_species, /datum/species/dwarf)) // all 3 of these manually set your height
|
||||
return FALSE
|
||||
|
||||
for (var/quirk_id as anything in preferences?.all_quirks)
|
||||
for (var/quirk_id in preferences?.all_quirks)
|
||||
if (quirk_id in incompatable_quirk_ids)
|
||||
return FALSE
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
if (HAS_TRAIT(target, TRAIT_DWARF)) // nuh uh. your height is set mf
|
||||
return FALSE
|
||||
|
||||
for (var/quirk_id as anything in preferences?.all_quirks)
|
||||
for (var/quirk_id in preferences?.all_quirks)
|
||||
if (quirk_id in incompatable_quirk_ids)
|
||||
return FALSE
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
var/list/options = list()
|
||||
var/list/picks_to_instances = list()
|
||||
var/list/rat_styles = subtypesof(/datum/rat_fashion)
|
||||
for (var/style_path as anything in rat_styles)
|
||||
for (var/style_path in rat_styles)
|
||||
var/datum/rat_fashion/style = new style_path()
|
||||
var/datum/radial_menu_choice/choice = style.get_radial_select()
|
||||
options += list("[choice.name]" = choice)
|
||||
|
||||
@@ -787,7 +787,7 @@ SUBSYSTEM_DEF(gamemode)
|
||||
|
||||
log_dynamic("[players.len] players ready! Processing storyteller vote results.")
|
||||
|
||||
for(var/vote as anything in vote_datum.choices_by_ckey)
|
||||
for(var/vote in vote_datum.choices_by_ckey)
|
||||
if(!vote_datum.choices_by_ckey[vote])
|
||||
continue
|
||||
var/vote_string = "[vote]"
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
var/list/static_data = list()
|
||||
// Events are static because we don't need to update them as often, only on storyteller ticks
|
||||
static_data["events"] = list()
|
||||
for(var/event_category as anything in event_pools)
|
||||
for(var/event_category in event_pools)
|
||||
var/list/event_list = event_pools[event_category]
|
||||
static_data["events"][event_category] = list("name" = event_category, "events" = list())
|
||||
for(var/datum/round_event_control/event as anything in event_list)
|
||||
|
||||
Reference in New Issue
Block a user