mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
🎁 Fix holiday loot being ultra rare
Since maintenance loot was put in the wide categories of trash, common, uncommon and oddities, the Easter and Christmas maintenance loot was made incredibly rare. This commit increases the chances to around 25% of all maintenance loot to be a special holiday item, rather than the tiny oddity level chance before.
This commit is contained in:
@@ -257,6 +257,7 @@ GLOBAL_LIST_INIT(oddity_loot, list(//oddity: strange or crazy items
|
||||
#define maint_common_weight 4500
|
||||
#define maint_uncommon_weight 1000
|
||||
#define maint_oddity_weight 1 //1 out of 10,000 would give metastation (180 spawns) a 2 in 111 chance of spawning an oddity per round, similar to xeno egg
|
||||
#define maint_holiday_weight 3500 // When holiday loot is enabled, it'll give every loot item a 25% chance of being a holiday item
|
||||
|
||||
//Loot pool used by default maintenance loot spawners
|
||||
GLOBAL_LIST_INIT(maintenance_loot, list(
|
||||
|
||||
@@ -511,9 +511,11 @@
|
||||
/datum/holiday/xmas/celebrate()
|
||||
SSticker.OnRoundstart(CALLBACK(src, .proc/roundstart_celebrate))
|
||||
GLOB.maintenance_loot += list(
|
||||
/obj/item/toy/xmas_cracker = 3,
|
||||
/obj/item/clothing/head/santa = 1,
|
||||
/obj/item/a_gift/anything = 1
|
||||
list(
|
||||
/obj/item/toy/xmas_cracker = 3,
|
||||
/obj/item/clothing/head/santa = 1,
|
||||
/obj/item/a_gift/anything = 1
|
||||
) = maint_holiday_weight,
|
||||
)
|
||||
|
||||
/datum/holiday/xmas/proc/roundstart_celebrate()
|
||||
@@ -583,8 +585,11 @@
|
||||
|
||||
/datum/holiday/easter/celebrate()
|
||||
GLOB.maintenance_loot += list(
|
||||
/obj/item/reagent_containers/food/snacks/egg/loaded = 15,
|
||||
/obj/item/storage/bag/easterbasket = 15)
|
||||
list(
|
||||
/obj/item/reagent_containers/food/snacks/egg/loaded = 15,
|
||||
/obj/item/storage/bag/easterbasket = 15
|
||||
) = maint_holiday_weight,
|
||||
)
|
||||
|
||||
/datum/holiday/easter/greet()
|
||||
return "Greetings! Have a Happy Easter and keep an eye out for Easter Bunnies!"
|
||||
|
||||
Reference in New Issue
Block a user