mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Refactors janitorialcart/attackby and removes a very duplicated proc on mops, lightreplacers and more (#26255)
* Wohooo refactor * Whoops * Adds unequip * Fixes * Update code/game/objects/items/weapons/mop.dm Co-authored-by: Adrer <erwin@lombok.demon.nl> Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * Update code/game/objects/items/weapons/mop.dm Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --------- Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: Adrer <erwin@lombok.demon.nl>
This commit is contained in:
@@ -240,7 +240,7 @@
|
||||
var/turf/replace_turf = get_turf(target)
|
||||
if(!istype(replace_turf))
|
||||
return
|
||||
|
||||
|
||||
if(get_dist(src, target) >= (U.client.maxview() + 2)) // To prevent people from using it over cameras
|
||||
return
|
||||
|
||||
@@ -258,13 +258,6 @@
|
||||
if(!used)
|
||||
to_chat(U, "[src]'s refill light blinks red.")
|
||||
|
||||
/obj/item/lightreplacer/proc/janicart_insert(mob/user, obj/structure/janitorialcart/J)
|
||||
J.myreplacer = src
|
||||
J.put_in_cart(src, user)
|
||||
|
||||
/obj/item/lightreplacer/cyborg/janicart_insert(mob/user, obj/structure/janitorialcart/J)
|
||||
return
|
||||
|
||||
/obj/item/lightreplacer/cyborg/cyborg_recharge(coeff, emagged)
|
||||
for(var/I in 1 to coeff)
|
||||
Charge()
|
||||
|
||||
Reference in New Issue
Block a user