Files
siliconsandGitHub 5134116de4 supply: supply pack datums, some reworks (#6599)
tl;dr refactors supplypacks to a new system

- all access locks yanked from crates other than the ones that actually
need to be locked
- preps system for reworks, translates stuff over to a new format
- adds unified subsystem parsing & support for other descriptors for
cargo crate contents other than typepath
2024-07-31 10:28:39 -04:00

18 lines
575 B
Plaintext

/datum/gm_action/shipping_error
name = "shipping error"
departments = list(DEPARTMENT_CARGO)
reusable = TRUE
/datum/gm_action/shipping_error/get_weight()
var/cargo = metric.count_people_in_department(DEPARTMENT_CARGO)
var/weight = (cargo * 40)
return weight
/datum/gm_action/shipping_error/start()
..()
var/datum/supply_order/O = new /datum/supply_order()
O.ordernum = SSsupply.ordernum
O.object = SSsupply.legacy_supply_packs[pick(SSsupply.legacy_supply_packs)]
O.ordered_by = random_name(pick(MALE,FEMALE), species = SPECIES_HUMAN)
SSsupply.shoppinglist += O