Files
Leland Kemble 5c4296392a Fixes runtime when an exodrone rolls the shrubbery crate from the abandoned cargo ship (#96583)
## About The Pull Request

Shrubbery crate by virtue of manually filling itself for an
indiscernible reason wasn't added to `SSshuttle.supply_packs`, runtimed
when attempted to be found from there by the exodrone loot thing

## Why It's Good For The Game

cant find a round it happened in but the runtime is `cannot read
null.order_flags`
[here](https://github.com/lelandkemble/tgstation/blob/479d1b1828f882c5662fb9de10784c4b0800fae0/code/modules/explorer_drone/loot.dm#L46-L49)

## Changelog
🆑

fix: fixed a runtime when an exodrone rolls the shrubbery crate cargo
crate chip from the abandoned cargo ship
/🆑
2026-06-19 20:29:49 +02:00

39 lines
1.2 KiB
Plaintext

/// Exploration drone unlockables ///
/datum/supply_pack/exploration
order_flags = ORDER_SPECIAL
group = "Outsourced"
/datum/supply_pack/exploration/scrapyard
name = "Scrapyard Crate"
desc = "Outsourced crate containing various junk."
cost = CARGO_CRATE_VALUE * 5
contains = list(/obj/item/relic,
/obj/item/broken_bottle,
/obj/item/pickaxe/rusted)
crate_name = "scrapyard crate"
/datum/supply_pack/exploration/catering
name = "Catering Crate"
desc = "No cook? No problem! Food quality may vary depending on provider."
cost = CARGO_CRATE_VALUE * 5
contains = list(/obj/item/food/sandwich = 5)
crate_name = "outsourced food crate"
/datum/supply_pack/exploration/catering/fill(obj/structure/closet/crate/crate)
. = ..()
if(!prob(30))
return
for(var/obj/item/food/food_item in crate)
// makes all of our items GROSS
food_item.name = "spoiled [food_item.name]"
food_item.AddComponentFrom(SOURCE_EDIBLE_INNATE, /datum/component/edible, foodtypes = GROSS)
/datum/supply_pack/exploration/shrubbery
name = "Shrubbery Crate"
desc = "Crate full of hedge shrubs."
cost = CARGO_CRATE_VALUE * 5
contains = list(/obj/item/grown/shrub = 8)
crate_name = "shrubbery crate"