-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update donator example config & Refactoring (#7612)
# About the pull request This PR is a follow up to #7306 updating the example config, makes the ckey entry in the config a bit more resilient to stuff like case sensitivity by using the [ckey proc](https://www.byond.com/docs/ref/#/proc/ckey), and refactors the two master lists to GLOBs that automatically initialize. Also makes it possible to reload the custom_items config at runtime via advanced proc call. # Explain why it's good for the game More flexible config, and an accurate example. # Testing Photographs and Procedure <details> <summary>Screenshots & Videos</summary> ![image](https://github.com/user-attachments/assets/916effc5-7c92-4fa4-acdb-2faa25e98cf6) ![image](https://github.com/user-attachments/assets/df9eb536-89fc-411c-bd14-b9c03948064b) </details> # Changelog :cl: code: Refactored donator lists to GLOBs that automatically initialize and made ckeys in custom_items.txt more flexible config: Updated example config for custom_items.txt /:cl:
- Loading branch information
Showing
2 changed files
with
40 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
ckey: name: /path/to/obj | ||
# Ckey: Variant: Typepath, Typepath, ... | ||
# Variant is used if there are multiple kits for one ckey | ||
# Multiple typepaths can be used to make a kit with multiple items | ||
|
||
# For example... | ||
# CKEY: /obj/item/toy/plush/random_plushie | ||
# CKEY2: /obj/item/toy/plush/farwa, /obj/item/toy/plush/shark | ||
# CKEY3: Kit1: /obj/item/toy/plush/moth | ||
# CKEY3: Kit2: /obj/item/toy/plush/therapy/red, /obj/item/reagent_container/food/drinks/cans/waterbottle |