[MIRROR] Adds logging to uplinks, spellbooks, and the codex ciatrix (#2937)

* Adds logging to uplinks, spellbooks, and the codex ciatrix (#56450)

* Initial logging

* Bugfix and adds uplink logging to config file

* Another bugfix

* Adds logging to uplinks, spellbooks, and the codex ciatrix

Co-authored-by: TemporalOroboros <TemporalOroboros@gmail.com>
This commit is contained in:
SkyratBot
2021-01-29 15:12:01 +01:00
committed by GitHub
parent a73598c6ad
commit 7f7252d855
9 changed files with 66 additions and 28 deletions
+2
View File
@@ -88,6 +88,7 @@
var/amt = TC.amount
telecrystals += amt
TC.use(amt)
log_uplink("[key_name(user)] loaded [amt] telecrystals into [parent]'s uplink")
/datum/component/uplink/proc/set_gamemode(_gamemode)
gamemode = _gamemode
@@ -107,6 +108,7 @@
var/cost = UI.refund_amount || UI.cost
if(I.type == path && UI.refundable && I.check_uplink_validity())
telecrystals += cost
log_uplink("[key_name(user)] refunded [UI] for [cost] telecrystals using [parent]'s uplink")
if(purchase_log)
purchase_log.total_spent -= cost
to_chat(user, "<span class='notice'>[I] refunded.</span>")