From 8e7bccd52e8ec0988fcee0328b59189a81b4a00b Mon Sep 17 00:00:00 2001 From: WolvesAndOwls <79985892+WolvesAndOwls@users.noreply.github.com> Date: Thu, 25 Jun 2026 10:01:50 -0500 Subject: [PATCH] Borgs can now nibble kibble (again) (#19541) * Borgs can now nibble kibble (again) * Check borg distance, no more eating across map. * Edits * Balloon alerts --------- Co-authored-by: Cameron Lennox --- code/game/objects/items/trash_vr.dm | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/trash_vr.dm b/code/game/objects/items/trash_vr.dm index 2589567bd83..9597ba7456b 100644 --- a/code/game/objects/items/trash_vr.dm +++ b/code/game/objects/items/trash_vr.dm @@ -1,6 +1,6 @@ // Custom garbage or whatever -/obj/item/trash/attack(mob/living/M as mob, mob/living/user as mob) +/obj/item/trash/attack(mob/living/M, mob/living/user) if(ishuman(M)) var/mob/living/carbon/human/H = M if(H.species.trashcan == 1) @@ -25,6 +25,27 @@ desc = "Contains every type of scrap material your robot puppy needs to grow big and strong." icon = 'icons/mob/dogborg_vr.dmi' icon_state = "kibble" + var/bitecount = 0 + var/bites = 5 + +/obj/item/trash/rkibble/attack_robot(mob/user) + . = ..() + if(isrobot(user)) + var/mob/living/silicon/robot/our_robot = user + var/dist = get_dist(src, user) + if(dist > 1) + return + bitecount++ + our_robot.cell?.give(50) + user.setClickCooldown(user.get_attack_speed(user)) + //TODO I want to give borgs charge here but I don't know how to do that yet. + if(bitecount>=5) + user.balloon_alert_visible("\the [user] finishes eating \the [src]", \ + "finished eating \the [src].") + qdel(src) + return + user.balloon_alert_visible("\the [user] nibbles \the [src]", \ + "nibbled \the [src].") /obj/item/trash/fancyplate name = "dirty fancy plate"