Allows robots to search loot piles (#7057)

* Allows robots to search loot piles

* Implements feedback
This commit is contained in:
atlantiscze
2020-05-04 03:26:24 +02:00
committed by VirgoBot
parent 77bfae1af3
commit b0fad7b55e
2 changed files with 10 additions and 0 deletions

View File

@@ -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))

View File

@@ -0,0 +1,6 @@
author: atlantiscze
delete-after: True
changes:
- rscadd: "Robots can now search loot piles."