From 28346cd5ef1898d23ffe4d76fc4a3acb3a3d9d65 Mon Sep 17 00:00:00 2001 From: CHOMPStation2StaffMirrorBot <94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com> Date: Thu, 25 Jun 2026 08:21:19 -0700 Subject: [PATCH] [MIRROR] Borgs can now nibble kibble (again) (#12844) Co-authored-by: WolvesAndOwls <79985892+WolvesAndOwls@users.noreply.github.com> 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 2589567bd8..9597ba7456 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"