mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Merge pull request #8291 from VOREStation/Arokha/logsupply
Log all supply purchases for stats generation
This commit is contained in:
@@ -187,6 +187,8 @@ SUBSYSTEM_DEF(supply)
|
|||||||
|
|
||||||
var/list/clear_turfs = get_clear_turfs()
|
var/list/clear_turfs = get_clear_turfs()
|
||||||
|
|
||||||
|
var/shopping_log = "SUPPLY_BUY: "
|
||||||
|
|
||||||
for(var/datum/supply_order/SO in shoppinglist)
|
for(var/datum/supply_order/SO in shoppinglist)
|
||||||
if(!clear_turfs.len)
|
if(!clear_turfs.len)
|
||||||
break
|
break
|
||||||
@@ -197,6 +199,7 @@ SUBSYSTEM_DEF(supply)
|
|||||||
|
|
||||||
SO.status = SUP_ORDER_SHIPPED
|
SO.status = SUP_ORDER_SHIPPED
|
||||||
var/datum/supply_pack/SP = SO.object
|
var/datum/supply_pack/SP = SO.object
|
||||||
|
shopping_log += "[SP.name];"
|
||||||
|
|
||||||
var/obj/A = new SP.containertype(pickedloc)
|
var/obj/A = new SP.containertype(pickedloc)
|
||||||
A.name = "[SP.containername] [SO.comment ? "([SO.comment])":"" ]"
|
A.name = "[SP.containername] [SO.comment ? "([SO.comment])":"" ]"
|
||||||
@@ -251,6 +254,7 @@ SUBSYSTEM_DEF(supply)
|
|||||||
slip.info += "</ul><br>"
|
slip.info += "</ul><br>"
|
||||||
slip.info += "CHECK CONTENTS AND STAMP BELOW THE LINE TO CONFIRM RECEIPT OF GOODS<hr>"
|
slip.info += "CHECK CONTENTS AND STAMP BELOW THE LINE TO CONFIRM RECEIPT OF GOODS<hr>"
|
||||||
|
|
||||||
|
log_game(shopping_log)
|
||||||
return
|
return
|
||||||
|
|
||||||
// Will attempt to purchase the specified order, returning TRUE on success, FALSE on failure
|
// Will attempt to purchase the specified order, returning TRUE on success, FALSE on failure
|
||||||
|
|||||||
Reference in New Issue
Block a user