mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Adds logging to buckling (#25631)
This commit is contained in:
@@ -142,10 +142,15 @@
|
||||
M.visible_message("<span class='notice'>[M] buckles [M.p_themselves()] to [src].</span>",\
|
||||
"<span class='notice'>You buckle yourself to [src].</span>",\
|
||||
"<span class='italics'>You hear metal clanking.</span>")
|
||||
M.create_log(ATTACK_LOG, "Buckles [M.p_themselves()] to [src]", M)
|
||||
log_attack(M, M, "Buckles themselves to [src]")
|
||||
else
|
||||
M.visible_message("<span class='warning'>[user] buckles [M] to [src]!</span>",\
|
||||
"<span class='warning'>[user] buckles you to [src]!</span>",\
|
||||
"<span class='italics'>You hear metal clanking.</span>")
|
||||
user.create_log(ATTACK_LOG, "[user] has buckled [M] to [src]", M)
|
||||
M.create_log(DEFENSE_LOG, "[M] has been buckled by [user] to [src]", user)
|
||||
log_attack(user, M, "Buckled to [src]")
|
||||
M.pulledby?.stop_pulling()
|
||||
|
||||
/atom/movable/proc/user_unbuckle_mob(mob/living/buckled_mob, mob/user)
|
||||
@@ -155,10 +160,15 @@
|
||||
M.visible_message("<span class='notice'>[user] unbuckles [M] from [src].</span>",\
|
||||
"<span class='notice'>[user] unbuckles you from [src].</span>",\
|
||||
"<span class='italics'>You hear metal clanking.</span>")
|
||||
user.create_log(ATTACK_LOG, "[user] has unbuckled [M] from [src]", M)
|
||||
M.create_log(DEFENSE_LOG, "[M] has been unbuckled by [user] from [src]", user)
|
||||
log_attack(user, M, "Unbuckled from [src]")
|
||||
else
|
||||
M.visible_message("<span class='notice'>[M] unbuckles [M.p_themselves()] from [src].</span>",\
|
||||
"<span class='notice'>You unbuckle yourself from [src].</span>",\
|
||||
"<span class='italics'>You hear metal clanking.</span>")
|
||||
M.create_log(ATTACK_LOG, "Unbuckles [M.p_themselves()] from [src]", M)
|
||||
log_attack(M, M, "Unbuckles themselves from [src]")
|
||||
add_fingerprint(user)
|
||||
return M
|
||||
|
||||
|
||||
Reference in New Issue
Block a user