mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
[MIRROR] New Lavaland Monster: Bileworms [MDB IGNORE] (#15423)
* New Lavaland Monster: Bileworms * Update living.dm * Update space_dragon.dm * Update mining_mobs.dm * Update kinetic_crusher.dm Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com> Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
@@ -223,21 +223,20 @@
|
||||
else
|
||||
..()
|
||||
|
||||
/obj/item/crusher_trophy/proc/add_to(obj/item/kinetic_crusher/H, mob/living/user)
|
||||
for(var/t in H.trophies)
|
||||
var/obj/item/crusher_trophy/T = t
|
||||
if(istype(T, denied_type) || istype(src, T.denied_type))
|
||||
to_chat(user, span_warning("You can't seem to attach [src] to [H]. Maybe remove a few trophies?"))
|
||||
/obj/item/crusher_trophy/proc/add_to(obj/item/kinetic_crusher/crusher, mob/living/user)
|
||||
for(var/obj/item/crusher_trophy/trophy as anything in crusher.trophies)
|
||||
if(istype(trophy, denied_type) || istype(src, trophy.denied_type))
|
||||
to_chat(user, span_warning("You can't seem to attach [src] to [crusher]. Maybe remove a few trophies?"))
|
||||
return FALSE
|
||||
if(!user.transferItemToLoc(src, H))
|
||||
if(!user.transferItemToLoc(src, crusher))
|
||||
return
|
||||
H.trophies += src
|
||||
to_chat(user, span_notice("You attach [src] to [H]."))
|
||||
crusher.trophies += src
|
||||
to_chat(user, span_notice("You attach [src] to [crusher]."))
|
||||
return TRUE
|
||||
|
||||
/obj/item/crusher_trophy/proc/remove_from(obj/item/kinetic_crusher/H, mob/living/user)
|
||||
forceMove(get_turf(H))
|
||||
H.trophies -= src
|
||||
/obj/item/crusher_trophy/proc/remove_from(obj/item/kinetic_crusher/crusher, mob/living/user)
|
||||
forceMove(get_turf(crusher))
|
||||
crusher.trophies -= src
|
||||
return TRUE
|
||||
|
||||
/obj/item/crusher_trophy/proc/on_melee_hit(mob/living/target, mob/living/user) //the target and the user
|
||||
|
||||
Reference in New Issue
Block a user