Files
2ee1b06936 Purchasable Emergency Shuttles (Ready for review) (#23701)
* basic framework

* Moves shuttle loading out to subsystem

* work out most of the ordering logic

* better whitelisting

* shuttle speed factor is a thing now

* Better speed factor, renaming

* try to fix some typing issues

* Apply suggestions from code review

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

* Fixes some issues with multiple shuttle orders

* add some basic prices

* more minor price adjustments

* Add cmag support

* order of ops

* Update code/controllers/subsystem/SSshuttles.dm

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

* Make necessary tgui tweaks

* Whitespace suggestions

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* Update code/controllers/subsystem/SSshuttles.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* addresses some review concerns

* remove todo

* Apply suggestions from code review

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* Update code/controllers/subsystem/SSshuttles.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* ahh eto

* cleaned up as per discord

---------

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
2024-03-11 17:12:06 +00:00

22 lines
812 B
Plaintext

/// Abstract supply packs that don't contain any goods, but instead represent purchases that cargo can make.
/// A supply pack that does not contain physical objects, but instead fires some sort of callback when ordered.
/datum/supply_packs/abstract
/datum/supply_packs/abstract/New()
. = ..()
ui_manifest = list(manifest)
/datum/supply_packs/abstract/create_package(turf/spawn_location)
return
/// A sample supply pack that notifies admins when it is purchased, but provides no items.
/datum/supply_packs/abstract/admin_notify
/datum/supply_packs/abstract/admin_notify/on_order_confirm(datum/supply_order/order)
var/mob/orderer = order.orderedby
var/order_rank = order.orderedbyRank
message_admins("Admin-notify pack [src] costing [cost] has been ordered and paid for by [orderer] ([order_rank])")