Files
Bubberstation/code/modules/bitrunning/objects/gimmick_disks/dungeon_disk.dm
Bloop cb51a652a9 Adds automatic GAGS icon generation for mapping and the loadout menu (#90940)
## About The Pull Request

Revival of https://github.com/tgstation/tgstation/pull/86482, which is
even more doable now that we have rustg iconforge generation.

What this PR does:

- Sets up every single GAGS icon in the game to have their own preview
icon autogenerated during compile. This is configurable to not run
during live. The icons are created in `icons/map_icons/..`
- This also has the side effect of providing accurate GAGS icons for
things like the loadout menu. No more having to create your own
previews.


![FOuGL6ofxC](https://github.com/user-attachments/assets/e5414971-7f13-4883-9f7f-a8a212b46fe8)

<details><summary>Mappers rejoice!</summary>


![StrongDMM_1oeMSoRHXT](https://github.com/user-attachments/assets/83dcfe4c-31be-4953-98f3-dff90268bbc4)


![StrongDMM_uyqu3CggPn](https://github.com/user-attachments/assets/7896f99e-2656-40e1-a9da-3a513882365a)

</details>

<details><summary>Uses iconforge so it does not take up much time during
init</summary>


![dreamdaemon_u4Md3Dqwge](https://github.com/user-attachments/assets/17baaff8-5d5e-4a4d-ba8f-9dd548024155)

</details>

---

### Copied from https://github.com/tgstation/tgstation/pull/86482 as
this still applies:

Note for Spriters:

After you've assigned the correct values to vars, you must run the game
through init on your local machine and commit the changes to the map
icon dmi files. Unit tests should catch all cases of forgetting to
assign the correct vars, or not running through init.

Note for Server Operators:

In order to not generate these icons on live I've added a new config
entry which should be disabled on live called GENERATE_ASSETS_IN_INIT in
the config.txt


## Why It's Good For The Game

No more error icons in SDMM and loadout.

## Changelog

🆑
refactor: preview icons for greyscale items are now automatically
generated, meaning you can see GAGS as they actually appear ingame while
mapping or viewing the loadout menu.
/🆑

---------

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
2025-05-24 15:21:02 -07:00

180 lines
4.9 KiB
Plaintext

/**
* Bitrunning gimmick loadouts themed around dungeon crawling.
* Mostly for fun, have niche but not insignificant advantages.
*/
/obj/item/bitrunning_disk/gimmick/dungeon
name = "bitrunning gimmick: dungeon crawling"
selectable_loadouts = list(
/datum/bitrunning_gimmick/alchemist,
/datum/bitrunning_gimmick/rogue,
/datum/bitrunning_gimmick/healer,
/datum/bitrunning_gimmick/wizard,
)
/datum/bitrunning_gimmick/alchemist
name = "Alchemist"
granted_items = list(
/obj/item/clothing/suit/bio_suit/plaguedoctorsuit,
/obj/item/clothing/mask/gas/plaguedoctor,
/obj/item/clothing/head/bio_hood/plague,
/obj/item/storage/box/alchemist_basic_chems,
/obj/item/storage/box/alchemist_basic_chems,
/obj/item/storage/box/alchemist_random_chems,
/obj/item/storage/box/alchemist_chemistry_kit,
)
/obj/item/reagent_containers/cup/bottle/alchemist_basic
name = "unlabeled bottle"
desc = "A small bottle. You don't remember what you put in it."
/// List of possible reagents we may pick from
var/static/list/possible_reagents = list(
/datum/reagent/aluminium, // Basic chems
/datum/reagent/bromine,
/datum/reagent/carbon,
/datum/reagent/chlorine,
/datum/reagent/copper,
/datum/reagent/consumable/ethanol,
/datum/reagent/fluorine,
/datum/reagent/hydrogen,
/datum/reagent/iodine,
/datum/reagent/iron,
/datum/reagent/lithium,
/datum/reagent/mercury,
/datum/reagent/nitrogen,
/datum/reagent/oxygen,
/datum/reagent/phosphorus,
/datum/reagent/potassium,
/datum/reagent/uranium/radium,
/datum/reagent/silicon,
/datum/reagent/sodium,
/datum/reagent/stable_plasma,
/datum/reagent/consumable/sugar,
/datum/reagent/sulfur,
/datum/reagent/toxin/acid,
/datum/reagent/water,
/datum/reagent/fuel,
/datum/reagent/toxin/leadacetate, // Funny chems
/datum/reagent/consumable/liquidgibs,
/datum/reagent/consumable/nutriment,
/datum/reagent/consumable/coffee,
)
/obj/item/reagent_containers/cup/bottle/alchemist_basic/add_initial_reagents()
var/our_reagent = pick(possible_reagents)
reagents.add_reagent(our_reagent, 50)
/obj/item/reagent_containers/cup/bottle/alchemist_random
name = "skull-labeled bottle"
desc = "A small bottle. You don't remember what you put in it."
/// List of random adjectives this bottle may have
var/static/list/possible_adjectives = list(
"unlabeled",
"skull-labeled", // Labels
"heart-labeled",
"explosion-labeled",
"fish-labeled",
"smiley-labeled",
"frown-labeled",
"interrobang-labeled",
"plus-labeled",
"d20-labeled",
"unreadably-labeled",
"black-labeled",
"empty-labeled",
"age-yellowed", // Qualities
"blood-tinged",
"ash-marred",
"claw-scratched",
"marker-marked",
"cracked",
"ominous", // Abstract
)
/obj/item/reagent_containers/cup/bottle/alchemist_random/Initialize(mapload)
. = ..()
name = "[pick(possible_adjectives)] bottle"
/obj/item/reagent_containers/cup/bottle/alchemist_random/add_initial_reagents()
var/our_reagent = get_random_reagent_id()
var/our_amount = rand(20, 50)
reagents.add_reagent(our_reagent, our_amount)
/datum/bitrunning_gimmick/rogue
name = "Rogue"
granted_items = list(
/obj/item/clothing/under/color/black,
/obj/item/clothing/shoes/sneakers/black,
/obj/item/clothing/mask/facescarf/rogue,
/obj/item/clothing/glasses/eyepatch,
/obj/item/bedsheet/black/rogue_cape,
/obj/item/storage/belt/fannypack/black/rogue,
/obj/item/knife/combat/survival,
)
/obj/item/clothing/shoes/sneakers/black
name = "sneaker of SNEAKING"
/obj/item/clothing/mask/facescarf/rogue
name = "cloth of DOOM"
icon_state = "/obj/item/clothing/mask/facescarf/rogue"
greyscale_colors = "#292929"
/obj/item/clothing/glasses/eyepatch
name = "eyepatch of SEALING"
/obj/item/bedsheet/black/rogue_cape
name = "cape of DARKNESS"
/datum/bitrunning_gimmick/healer
name = "Healer"
granted_items = list(
/obj/item/clothing/under/costume/singer/yellow,
/obj/item/clothing/shoes/singery,
/obj/item/rod_of_asclepius,
/obj/item/storage/medkit/surgery,
/obj/item/emergency_bed,
/obj/item/food/canned/larvae,
/obj/item/reagent_containers/dropper,
)
/datum/bitrunning_gimmick/wizard
name = "Wizard"
granted_items = list(
/obj/item/clothing/head/wizard/fake,
/obj/item/clothing/suit/wizrobe/fake,
/obj/item/clothing/glasses/eyepatch/medical/chuuni,
/obj/item/staff,
/obj/item/toy/eightball,
/obj/item/storage/fancy/cigarettes/cigpack_cannabis,
/obj/item/storage/box/matches,
)
granted_actions = list(
/datum/action/cooldown/spell/pointed/untie_shoes/digital,
/datum/action/cooldown/spell/smoke/digital,
)
/datum/action/cooldown/spell/pointed/untie_shoes/digital
name = "Untie Digi-Shoes"
spell_requirements = SPELL_REQUIRES_WIZARD_GARB
/datum/action/cooldown/spell/smoke/digital
name = "Digi-Smoke"
desc = "This spell spawns a small cloud of smoke at your location."
school = SCHOOL_CONJURATION
cooldown_time = 36 SECONDS
spell_requirements = SPELL_REQUIRES_WIZARD_GARB
smoke_type = /datum/effect_system/fluid_spread/smoke
smoke_amt = 2