From b0fad7b55e68baf554f8207b24d81fcfa55f626c Mon Sep 17 00:00:00 2001 From: atlantiscze Date: Mon, 4 May 2020 03:26:24 +0200 Subject: [PATCH] Allows robots to search loot piles (#7057) * Allows robots to search loot piles * Implements feedback --- code/game/objects/structures/loot_piles.dm | 4 ++++ html/changelogs/atlantiscze-dumpsterdive.yml | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 html/changelogs/atlantiscze-dumpsterdive.yml diff --git a/code/game/objects/structures/loot_piles.dm b/code/game/objects/structures/loot_piles.dm index 053d1293a9..b11f7aa36c 100644 --- a/code/game/objects/structures/loot_piles.dm +++ b/code/game/objects/structures/loot_piles.dm @@ -40,6 +40,10 @@ Loot piles can be depleted, if loot_depleted is turned on. Note that players wh var/list/uncommon_loot = list() // Uncommon is actually maybe some useful items, usually the reason someone bothers looking inside. var/list/rare_loot = list() // Rare is really powerful, or at least unique items. +/obj/structure/loot_pile/attack_ai(var/mob/user) + if(isrobot(user) && Adjacent(user)) + return attack_hand(user) + /obj/structure/loot_pile/attack_hand(mob/user) //Human mob if(isliving(user)) diff --git a/html/changelogs/atlantiscze-dumpsterdive.yml b/html/changelogs/atlantiscze-dumpsterdive.yml new file mode 100644 index 0000000000..ee988d11b9 --- /dev/null +++ b/html/changelogs/atlantiscze-dumpsterdive.yml @@ -0,0 +1,6 @@ +author: atlantiscze + +delete-after: True + +changes: + - rscadd: "Robots can now search loot piles." \ No newline at end of file