Merge pull request #8213 from Citadel-Station-13/kevinz000-patch-33
shuttle purchase announcements are no longer delayed by mapload's blocking proccall
This commit is contained in:
@@ -173,14 +173,15 @@
|
|||||||
var/obj/machinery/shuttle_manipulator/M = locate() in GLOB.machines
|
var/obj/machinery/shuttle_manipulator/M = locate() in GLOB.machines
|
||||||
if(M)
|
if(M)
|
||||||
SSshuttle.shuttle_purchased = TRUE
|
SSshuttle.shuttle_purchased = TRUE
|
||||||
M.unload_preview()
|
|
||||||
M.load_template(S)
|
|
||||||
M.existing_shuttle = SSshuttle.emergency
|
|
||||||
M.action_load(S)
|
|
||||||
SSshuttle.points -= S.credit_cost
|
SSshuttle.points -= S.credit_cost
|
||||||
minor_announce("[usr.real_name] has purchased [S.name] for [S.credit_cost] credits." , "Shuttle Purchase")
|
minor_announce("[usr.real_name] has purchased [S.name] for [S.credit_cost] credits." , "Shuttle Purchase")
|
||||||
message_admins("[ADMIN_LOOKUPFLW(usr)] purchased [S.name].")
|
message_admins("[ADMIN_LOOKUPFLW(usr)] purchased [S.name].")
|
||||||
SSblackbox.record_feedback("text", "shuttle_purchase", 1, "[S.name]")
|
SSblackbox.record_feedback("text", "shuttle_purchase", 1, "[S.name]")
|
||||||
|
M.unload_preview()
|
||||||
|
M.load_template(S)
|
||||||
|
M.existing_shuttle = SSshuttle.emergency
|
||||||
|
M.action_load(S)
|
||||||
|
message_admins("[S.name] loaded, purchased by [usr]")
|
||||||
else
|
else
|
||||||
to_chat(usr, "Something went wrong! The shuttle exchange system seems to be down.")
|
to_chat(usr, "Something went wrong! The shuttle exchange system seems to be down.")
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user