Rename all non-snake_case types. (#27268)

* refactor: Rename all non-snake_case types (not procs or vars (yet)).

* completely dynamic update script

* might help to include the data

* update aa's scuffed python

* oh

* set script PR number

* run updatepaths again

* Add other table updates with JSON columns

* bump SQL version

* just fucking end my life

* move JSON data
This commit is contained in:
warriorstar-orion
2024-11-30 19:08:45 +00:00
committed by GitHub
parent db4dda0fdf
commit 0ffa8303a7
180 changed files with 2492 additions and 1781 deletions
+2 -2
View File
@@ -314,7 +314,7 @@
/datum/action/item_action/toggle_barrier_spread
name = "Toggle Barrier Spread"
/datum/action/item_action/equip_unequip_TED_Gun
/datum/action/item_action/equip_unequip_ted_gun
name = "Equip/Unequip TED Gun"
/datum/action/item_action/toggle_paddles
@@ -435,7 +435,7 @@
/datum/action/item_action/noir
name = "Noir"
/datum/action/item_action/YEEEAAAAAHHHHHHHHHHHHH
/datum/action/item_action/yeeeaaaaahhhhhhhhhhhhh
name = "YEAH!"
/datum/action/item_action/laugh_track
+1 -1
View File
@@ -266,7 +266,7 @@
name = "Colonel REAL_NAME"
desc = "Keep away from live vox."
/datum/dog_fashion/head/HoS
/datum/dog_fashion/head/hos
name = "Head of Security REAL_NAME"
desc = "Probably better than the last HoS."
+2 -2
View File
@@ -1,4 +1,4 @@
/mob/camera/aiEye/remote/holo/setLoc()
/mob/camera/ai_eye/remote/holo/setLoc()
. = ..()
var/obj/machinery/hologram/holopad/H = origin
H.move_hologram(eye_user, loc)
@@ -12,7 +12,7 @@
var/obj/machinery/hologram/holopad/connected_holopad //the one that answered the call (may be null)
var/list/dialed_holopads //all things called, will be cleared out to just connected_holopad once answered
var/mob/camera/aiEye/remote/holo/eye //user's eye, once connected
var/mob/camera/ai_eye/remote/holo/eye //user's eye, once connected
var/obj/effect/overlay/holo_pad_hologram/hologram //user's hologram, once connected
var/datum/action/innate/end_holocall/hangup //hangup action
+2 -2
View File
@@ -611,7 +611,7 @@
suit = /obj/item/clothing/suit/sovietcoat
glasses = /obj/item/clothing/glasses/sunglasses
r_pocket = /obj/item/flashlight/seclite
belt = /obj/item/gun/projectile/automatic/pistol/APS
belt = /obj/item/gun/projectile/automatic/pistol/aps
backpack_contents = list(
/obj/item/storage/box/soviet = 1,
@@ -654,7 +654,7 @@
backpack_contents = list(
/obj/item/storage/box/soviet = 1,
/obj/item/gun/projectile/automatic/pistol/APS = 1,
/obj/item/gun/projectile/automatic/pistol/aps = 1,
/obj/item/ammo_box/magazine/apsm10mm = 2,
/obj/item/storage/fancy/cigarettes/cigpack_syndicate = 1,
/obj/item/lighter/zippo/engraved = 1
+1 -1
View File
@@ -318,7 +318,7 @@
// put cool admin-only shit here :)
/obj/item/storage/box/debug/misc_debug/populate_contents()
new /obj/item/badminBook(src)
new /obj/item/badmin_book(src)
new /obj/item/reagent_containers/drinks/bottle/vodka/badminka(src)
new /obj/item/crowbar/power(src) // >admin only lol
new /obj/item/clothing/gloves/fingerless/rapid/admin(src)
+1 -1
View File
@@ -57,7 +57,7 @@
return what_conjure_summoned
/datum/spell/aoe/conjure/summonEdSwarm
/datum/spell/aoe/conjure/summon_ed_swarm
name = "Dispense Wizard Justice"
desc = "This spell dispenses wizard justice."
summon_type = list(/mob/living/simple_animal/bot/ed209)
+6 -6
View File
@@ -319,7 +319,7 @@
//Hippocratic Oath: Applied when the Rod of Asclepius is activated.
/datum/status_effect/hippocraticOath
/datum/status_effect/hippocratic_oath
id = "Hippocratic Oath"
status_type = STATUS_EFFECT_UNIQUE
duration = -1
@@ -332,19 +332,19 @@
/// Max heal points for the rod to spend on healing people
var/max_heal_points = 50
/datum/status_effect/hippocraticOath/on_apply()
/datum/status_effect/hippocratic_oath/on_apply()
//Makes the user passive, it's in their oath not to harm!
ADD_TRAIT(owner, TRAIT_PACIFISM, "hippocraticOath")
var/datum/atom_hud/H = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED]
H.add_hud_to(owner)
return ..()
/datum/status_effect/hippocraticOath/on_remove()
/datum/status_effect/hippocratic_oath/on_remove()
REMOVE_TRAIT(owner, TRAIT_PACIFISM, "hippocraticOath")
var/datum/atom_hud/H = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED]
H.remove_hud_from(owner)
/datum/status_effect/hippocraticOath/tick()
/datum/status_effect/hippocratic_oath/tick()
// Death transforms you into a snake after a short grace period
if(owner.stat == DEAD)
if(deathTick < 4)
@@ -386,7 +386,7 @@
if(!heal_points)
break
/datum/status_effect/hippocraticOath/proc/heal(mob/living/L)
/datum/status_effect/hippocratic_oath/proc/heal(mob/living/L)
var/starting_points = heal_points
var/force_particle = FALSE
@@ -417,7 +417,7 @@
if(starting_points < heal_points || force_particle)
new /obj/effect/temp_visual/heal(get_turf(L), COLOR_HEALING_GREEN)
/datum/status_effect/hippocraticOath/proc/heal_human(mob/living/carbon/human/H)
/datum/status_effect/hippocratic_oath/proc/heal_human(mob/living/carbon/human/H)
if(H.getBruteLoss() || H.getFireLoss() || H.getOxyLoss() || H.getToxLoss() || H.getBrainLoss() || H.getStaminaLoss() || H.getCloneLoss()) // Avoid counting burn wounds
H.adjustBruteLoss(-3.5, robotic = TRUE)
H.adjustFireLoss(-3.5, robotic = TRUE)
+8 -8
View File
@@ -372,7 +372,7 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
cost = 5
surplus = 50
/datum/uplink_item/stealthy_weapons/RSG
/datum/uplink_item/stealthy_weapons/rsg
name = "Rapid Syringe Gun"
desc = "A syndicate rapid syringe gun able to fill and fire syringes automatically from an internal reagent reservoir. Comes pre-loaded with 7 empty syringes, and has a maximum capacity of 14 syringes and 300u of reagents."
reference = "RSG"
@@ -712,7 +712,7 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
name = "Hacked AI Upload Module"
desc = "When used with an upload console, this module allows you to upload priority laws to an artificial intelligence. Be careful with their wording, as artificial intelligences may look for loopholes to exploit."
reference = "HAI"
item = /obj/item/aiModule/syndicate
item = /obj/item/ai_module/syndicate
cost = 15
/datum/uplink_item/device_tools/powersink
@@ -1005,40 +1005,40 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
// MARK: BUNDLES AND TELECRYSTALS
////////////////////////////////////////
/datum/uplink_item/bundles_TC
/datum/uplink_item/bundles_tc
category = "Bundles and Telecrystals"
surplus = 0
can_discount = FALSE
/datum/uplink_item/bundles_TC/telecrystal
/datum/uplink_item/bundles_tc/telecrystal
name = "Raw Telecrystal"
desc = "Telecrystal in its rawest and purest form; can be utilized on active uplinks to increase their telecrystal count."
reference = "RTC"
item = /obj/item/stack/telecrystal
cost = 1
/datum/uplink_item/bundles_TC/telecrystal/five
/datum/uplink_item/bundles_tc/telecrystal/five
name = "5 Raw Telecrystals"
desc = "Five telecrystals in their rawest and purest form; can be utilized on active uplinks to increase their telecrystal count."
reference = "RTCF"
item = /obj/item/stack/telecrystal/five
cost = 5
/datum/uplink_item/bundles_TC/telecrystal/twenty
/datum/uplink_item/bundles_tc/telecrystal/twenty
name = "20 Raw Telecrystals"
desc = "Twenty telecrystals in their rawest and purest form; can be utilized on active uplinks to increase their telecrystal count."
reference = "RTCT"
item = /obj/item/stack/telecrystal/twenty
cost = 20
/datum/uplink_item/bundles_TC/telecrystal/fifty
/datum/uplink_item/bundles_tc/telecrystal/fifty
name = "50 Raw Telecrystals"
desc = "Fifty telecrystals in their rawest and purest form; can be utilized on active uplinks to increase their telecrystal count."
reference = "RTCB"
item = /obj/item/stack/telecrystal/fifty
cost = 50
/datum/uplink_item/bundles_TC/telecrystal/hundred
/datum/uplink_item/bundles_tc/telecrystal/hundred
name = "100 Raw Telecrystals"
desc = "One-hundred telecrystals in their rawest and purest form; can be utilized on active uplinks to increase their telecrystal count."
reference = "RTCH"
+7 -7
View File
@@ -8,7 +8,7 @@
name = "Stechkin APS Pistol"
reference = "APS"
desc = "The automatic machine pistol version of the FK-69 'Stechkin' chambered in 10mm Auto with a detachable 20-round box magazine. Perfect for dual wielding or as backup."
item = /obj/item/gun/projectile/automatic/pistol/APS
item = /obj/item/gun/projectile/automatic/pistol/aps
cost = 40
uplinktypes = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
@@ -236,11 +236,11 @@
cost = 60 // normally 90
uplinktypes = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
/datum/uplink_item/ammo/bulldog_XLmagsbag
/datum/uplink_item/ammo/bulldog_xl_magsbag
name = "Bulldog - 12g Extra-Large Magazine Duffel Bag"
desc = "A duffel bag containing five XL 16 round drum magazines. (3 Slug, 1 Buckshot, 1 Dragon's Breath)."
reference = "12XLDB"
item = /obj/item/storage/backpack/duffel/syndie/shotgunXLmags
item = /obj/item/storage/backpack/duffel/syndie/shotgun_xl_mags
// same price for more ammo, but you're likely to lose more ammo if you drop your bulldog. High risk, high reward.
cost = 60
uplinktypes = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
@@ -621,7 +621,7 @@
// MARK: BUNDLES
////////////////////////////////////////
/datum/uplink_item/bundles_TC/c20r
/datum/uplink_item/bundles_tc/c20r
name = "C-20r Bundle"
desc = "Old Faithful: The classic C-20r, bundled with three magazines and a (surplus) suppressor at discount price."
reference = "C20B"
@@ -629,7 +629,7 @@
cost = 90 // normally 105
uplinktypes = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
/datum/uplink_item/bundles_TC/cyber_implants
/datum/uplink_item/bundles_tc/cyber_implants
name = "Cybernetic Implants Bundle"
desc = "A random selection of cybernetic implants. Guaranteed 5 high quality implants. Comes with an autosurgeon."
reference = "CIB"
@@ -637,7 +637,7 @@
cost = 200
uplinktypes = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
/datum/uplink_item/bundles_TC/medical
/datum/uplink_item/bundles_tc/medical
name = "Medical Bundle"
desc = "The support specialist: Aid your fellow operatives with this medical bundle. Contains a tactical medkit, \
a medical beam gun and a pair of syndicate magboots."
@@ -646,7 +646,7 @@
cost = 80 // normally 105
uplinktypes = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
/datum/uplink_item/bundles_TC/sniper
/datum/uplink_item/bundles_tc/sniper
name = "Sniper bundle"
desc = "Elegant and refined: Contains a collapsed sniper rifle in an expensive carrying case, \
two soporific knockout magazines, a free surplus suppressor, and a sharp-looking tactical turtleneck suit. \
+6 -6
View File
@@ -621,7 +621,7 @@
cost = 1
excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
/datum/uplink_item/bundles_TC/contractor
/datum/uplink_item/bundles_tc/contractor
name = "Syndicate Contractor Kit"
desc = "A bundle granting you the privilege of taking on kidnapping contracts for credit and TC payouts that can add up to more than its initial cost."
reference = "SCOK"
@@ -629,7 +629,7 @@
item = /obj/item/storage/box/syndie_kit/contractor
excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
/datum/uplink_item/bundles_TC/contractor/spawn_item(turf/loc, obj/item/uplink/U)
/datum/uplink_item/bundles_tc/contractor/spawn_item(turf/loc, obj/item/uplink/U)
var/datum/mind/mind = usr.mind
var/datum/antagonist/traitor/AT = mind.has_antag_datum(/datum/antagonist/traitor)
if(LAZYACCESS(GLOB.contractors, mind))
@@ -653,7 +653,7 @@
log_game("[key_name(usr)] became a Contractor")
return I
/datum/uplink_item/bundles_TC/badass
/datum/uplink_item/bundles_tc/badass
name = "Syndicate Bundle"
desc = "Syndicate Bundles are specialised groups of items that arrive in a plain box. These items are collectively worth more than 100 telecrystals. You can select one out of three specialisations after purchase."
reference = "SYB"
@@ -661,7 +661,7 @@
cost = 100
excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
/datum/uplink_item/bundles_TC/surplus_crate
/datum/uplink_item/bundles_tc/surplus_crate
name = "Syndicate Surplus Crate"
desc = "A crate containing 250 telecrystals worth of random syndicate leftovers."
reference = "SYSC"
@@ -671,7 +671,7 @@
var/crate_value = 250
uses_special_spawn = TRUE
/datum/uplink_item/bundles_TC/surplus_crate/spawn_item(turf/loc, obj/item/uplink/U, mob/user)
/datum/uplink_item/bundles_tc/surplus_crate/spawn_item(turf/loc, obj/item/uplink/U, mob/user)
if(..() != UPLINK_SPECIAL_SPAWNING)
return FALSE
@@ -687,7 +687,7 @@
Changes your unarmed damage to deal non-lethal stamina damage. \
Does not restrict weapon usage, and can be used alongside Gloves of the North Star."
reference = "CQC"
item = /obj/item/CQC_manual
item = /obj/item/cqc_manual
cost = 50
excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)