[MIRROR] Mop do_after multi use

(#11633)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-09-14 03:42:34 -04:00
committed by GitHub
co-authored by Cameron Lennox
parent 4f4098122b
commit 980ece6324
32 changed files with 216 additions and 364 deletions
+10 -5
View File
@@ -91,16 +91,21 @@
qdel(src)
/obj/machinery/shield/hitby(AM as mob|obj)
/obj/machinery/shield/hitby(atom/movable/source)
//Let everyone know we've been hit!
visible_message(span_danger("\The [src] was hit by [AM]."))
visible_message(span_danger("\The [src] was hit by [source]."))
//Super realistic, resource-intensive, real-time damage calculations.
var/tforce = 0
if(ismob(AM))
if(ismob(source))
tforce = 40
else
tforce = AM:throwforce
if(isobj(source))
var/obj/object = source
if(isitem(object))
var/obj/item/our_item = object
tforce = our_item.throwforce
else
tforce = object.w_class
src.health -= tforce