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
@@ -310,7 +310,7 @@
return TRUE // It's resolved. No afterattack needed. Stops you from emagging lockers when putting in an emag
else if(can_be_emaged && (istype(W, /obj/item/card/emag) || istype(W, /obj/item/melee/energy/blade) && !broken))
emag_act(user)
else if(istype(W, /obj/item/stack/packageWrap))
else if(istype(W, /obj/item/stack/package_wrap))
return
else if(user.a_intent != INTENT_HARM)
closed_item_click(user)
@@ -466,8 +466,8 @@
to_chat(usr, "<span class='warning'>You successfully break out!</span>")
for(var/mob/O in viewers(L.loc))
O.show_message("<span class='danger'>\the [usr] successfully broke out of \the [src]!</span>", 1)
if(istype(loc, /obj/structure/bigDelivery)) //nullspace ect.. read the comment above
var/obj/structure/bigDelivery/BD = loc
if(istype(loc, /obj/structure/big_delivery)) //nullspace ect.. read the comment above
var/obj/structure/big_delivery/BD = loc
BD.attack_hand(usr)
open()
@@ -47,7 +47,7 @@
new /obj/item/clothing/accessory/medal/supply(src)
new /obj/item/clothing/suit/pimpcoat/tan(src)
new /obj/item/rcs(src)
new /obj/item/destTagger(src)
new /obj/item/dest_tagger(src)
new /obj/item/reagent_containers/drinks/mug/qm(src)
new /obj/item/flash(src)
new /obj/item/cartridge/qm(src)
@@ -121,4 +121,4 @@
new /obj/item/clothing/head/hardhat/atmos(src)
new /obj/item/clothing/glasses/meson/engine(src)
new /obj/item/rpd(src)
new /obj/item/destTagger(src)
new /obj/item/dest_tagger(src)
@@ -132,12 +132,12 @@
var/candy = pick(subtypesof(/obj/item/food/candy/fudge))
new candy(src)
/obj/structure/closet/secure_closet/CMO
/obj/structure/closet/secure_closet/cmo
name = "chief medical officer's locker"
req_access = list(ACCESS_CMO)
icon_state = "cmo"
/obj/structure/closet/secure_closet/CMO/populate_contents()
/obj/structure/closet/secure_closet/cmo/populate_contents()
if(prob(50))
new /obj/item/storage/backpack/medic(src)
else
@@ -153,7 +153,7 @@
new /obj/item/clothing/glasses/hud/health/sunglasses(src)
new /obj/item/flash(src)
new /obj/item/gun/syringe(src)
new /obj/item/reagent_containers/hypospray/CMO(src)
new /obj/item/reagent_containers/hypospray/cmo(src)
new /obj/item/organ/internal/cyberimp/eyes/hud/medical(src)
new /obj/item/door_remote/chief_medical_officer(src)
new /obj/item/reagent_containers/drinks/mug/cmo(src)
@@ -38,13 +38,13 @@
new /obj/item/radio/headset/headset_sci(src)
/obj/structure/closet/secure_closet/RD
/obj/structure/closet/secure_closet/rd
name = "research director's locker"
req_access = list(ACCESS_RD)
icon_state = "rd"
/obj/structure/closet/secure_closet/RD/populate_contents()
/obj/structure/closet/secure_closet/rd/populate_contents()
new /obj/item/storage/bag/garment/research_director(src)
new /obj/item/clothing/suit/bio_suit/scientist(src)
new /obj/item/clothing/head/bio_hood/scientist(src)
@@ -108,7 +108,7 @@
to_chat(usr, "<span class='warning'>You successfully break out!</span>")
for(var/mob/O in viewers(L.loc))
O.show_message("<span class='danger'>\the [usr] successfully broke out of \the [src]!</span>", 1)
if(istype(loc, /obj/structure/bigDelivery)) //Do this to prevent contents from being opened into nullspace (read: bluespace)
var/obj/structure/bigDelivery/BD = loc
if(istype(loc, /obj/structure/big_delivery)) //Do this to prevent contents from being opened into nullspace (read: bluespace)
var/obj/structure/big_delivery/BD = loc
BD.attack_hand(usr)
open()
@@ -29,7 +29,7 @@
new /obj/item/cartridge/hop(src)
new /obj/item/radio/headset/heads/hop(src)
new /obj/item/storage/box/ids(src)
new /obj/item/storage/box/PDAs(src)
new /obj/item/storage/box/pdas(src)
new /obj/item/gun/energy/gun/mini(src)
new /obj/item/flash(src)
new /obj/item/door_remote/civillian(src)
@@ -409,12 +409,12 @@
desc = "A freezer used to store IV bags containing various blood types."
/obj/structure/closet/crate/freezer/iv_storage/populate_contents()
new /obj/item/reagent_containers/iv_bag/blood/OMinus(src)
new /obj/item/reagent_containers/iv_bag/blood/OPlus(src)
new /obj/item/reagent_containers/iv_bag/blood/AMinus(src)
new /obj/item/reagent_containers/iv_bag/blood/APlus(src)
new /obj/item/reagent_containers/iv_bag/blood/BMinus(src)
new /obj/item/reagent_containers/iv_bag/blood/BPlus(src)
new /obj/item/reagent_containers/iv_bag/blood/o_minus(src)
new /obj/item/reagent_containers/iv_bag/blood/o_plus(src)
new /obj/item/reagent_containers/iv_bag/blood/a_minus(src)
new /obj/item/reagent_containers/iv_bag/blood/a_plus(src)
new /obj/item/reagent_containers/iv_bag/blood/b_minus(src)
new /obj/item/reagent_containers/iv_bag/blood/b_plus(src)
new /obj/item/reagent_containers/iv_bag/blood/random(src)
new /obj/item/reagent_containers/iv_bag/blood/random(src)
new /obj/item/reagent_containers/iv_bag/blood/random(src)
@@ -46,7 +46,7 @@
/obj/structure/closet/critter/random/populate_contents()
content_mob = pick(/mob/living/simple_animal/pet/dog/corgi,
/mob/living/simple_animal/pet/dog/corgi/Lisa,
/mob/living/simple_animal/pet/dog/corgi/lisa,
/mob/living/simple_animal/cow,
/mob/living/simple_animal/pig,
/mob/living/simple_animal/hostile/retaliate/goat,
@@ -64,7 +64,7 @@
/obj/structure/closet/critter/corgi/populate_contents()
if(prob(50))
content_mob = /mob/living/simple_animal/pet/dog/corgi/Lisa
content_mob = /mob/living/simple_animal/pet/dog/corgi/lisa
/obj/structure/closet/critter/cow
name = "cow crate"
@@ -95,7 +95,7 @@
/obj/structure/closet/critter/cat/populate_contents()
if(prob(50))
content_mob = /mob/living/simple_animal/pet/cat/Proc
content_mob = /mob/living/simple_animal/pet/cat/proc_cat
/obj/structure/closet/critter/pug
name = "pug crate"
@@ -65,7 +65,7 @@
/obj/structure/largecrate/lisa/crowbar_act(mob/living/user, obj/item/I)
if(!I.use_tool(src, user, I.tool_volume))
return
new /mob/living/simple_animal/pet/dog/corgi/Lisa(loc)
new /mob/living/simple_animal/pet/dog/corgi/lisa(loc)
return ..()
/obj/structure/largecrate/cow