Merge pull request #5354 from Zuhayr/cattes

Made cats pickupable.
This commit is contained in:
Chinsky
2014-06-24 13:12:01 +04:00
6 changed files with 28 additions and 1 deletions
+9 -1
View File
@@ -48,4 +48,12 @@
name = "maintenance drone"
desc = "It's a small maintenance robot."
icon_state = "drone"
origin_tech = "magnets=3;engineering=5"
origin_tech = "magnets=3;engineering=5"
/obj/item/weapon/holder/cat
name = "cat"
desc = "It's a cat. Meow."
icon_state = "cat"
origin_tech = null
@@ -60,6 +60,25 @@
stop_automated_movement = 1
walk_to(src,movement_target,0,3)
/mob/living/simple_animal/cat/MouseDrop(atom/over_object)
var/mob/living/carbon/human/H = over_object
if(!istype(H)) return ..()
//This REALLY needs to be moved to a general mob proc somewhere.
if(H.a_intent == "help")
var/obj/item/weapon/holder/cat/C = new(loc)
src.loc = C
C.name = loc.name
C.attack_hand(H)
H << "You scoop up [src]."
src << "[H] scoops you up."
H.status_flags |= PASSEMOTES
return
else
return ..()
//RUNTIME IS ALIVE! SQUEEEEEEEE~
/mob/living/simple_animal/cat/Runtime
name = "Runtime"