Merge pull request #3056 from Leshana/supply-shuttle-hook

Adds Supply Shuttle Hook
This commit is contained in:
Anewbe
2017-03-06 13:55:25 -06:00
committed by GitHub
2 changed files with 11 additions and 0 deletions

View File

@@ -85,3 +85,12 @@
* Parameters: var/obj/structure/closet/crate/sold, var/area/shuttle
*/
/hook/sell_crate
/**
* Supply Shuttle sold hook.
* Called in supplyshuttle.dm when the shuttle contents are sold.
* This hook is called _before_ the crates are processed for normal
* phoron/metal sale (and before the sell_crate hooks)
* Parameters: var/area/area_shuttle
*/
/hook/sell_shuttle

View File

@@ -184,6 +184,8 @@ var/list/mechtoys = list(
var/area/area_shuttle = shuttle.get_location_area()
if(!area_shuttle) return
callHook("sell_shuttle", list(area_shuttle));
var/phoron_count = 0
var/plat_count = 0