mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
Improves sleepy pen logging (#18588)
* Improve logging on sleepy pen * Refactor pen for some more admemery * Remove VV stuff * Update code/modules/paperwork/pen.dm yeah Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
co-authored by
Charlie
AffectedArc07
parent
2da68e9b64
commit
3b11220f00
@@ -119,10 +119,17 @@
|
||||
if(!M.can_inject(user, TRUE))
|
||||
return
|
||||
var/transfered = 0
|
||||
var/contained = list()
|
||||
|
||||
for(var/R in reagents.reagent_list)
|
||||
var/datum/reagent/reagent = R
|
||||
contained += "[round(reagent.volume, 0.01)]u [reagent]"
|
||||
|
||||
if(reagents.total_volume && M.reagents)
|
||||
transfered = reagents.trans_to(M, 50)
|
||||
|
||||
to_chat(user, "<span class='warning'>You sneakily stab [M] with the pen.</span>")
|
||||
add_attack_logs(user, M, "Stabbed with (sleepy) [src]. [transfered]u of reagents transfered.")
|
||||
add_attack_logs(user, M, "Stabbed with (sleepy) [src]. [transfered]u of reagents transfered from pen containing [english_list(contained)].")
|
||||
return TRUE
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user