mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
- Ian now chases food and eats it if he can.
- isanimal() and iscorgi() procs have been added - attack_animal() added for all atoms, called when an animal attacks (clicks on) an object within range. - attack_animal() proc added to food. Simple animals don't process reagents, meaning they can eat anything whatsoever. Corgis can take 5 bites out of any type of food. Ian will chase the food himself, regular corgis won't due to lag concerns. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2183 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -26,6 +26,18 @@
|
||||
// reagents.add_reagent("nutriment", 2) // this line of code for all the contents.
|
||||
// bitesize = 3 //This is the amount each bite consumes.
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/attack_animal(var/mob/M)
|
||||
if(isanimal(M))
|
||||
if(iscorgi(M))
|
||||
if(bitecount == 0 || prob(50))
|
||||
M.emote("nibbles away at the [src]")
|
||||
bitecount++
|
||||
if(bitecount >= 5)
|
||||
var/sattisfaction_text = pick("burps from enjoyment", "yaps for more", "woofs twice", "looks at the area where the [src] was")
|
||||
if(sattisfaction_text)
|
||||
M.emote("[sattisfaction_text]")
|
||||
del(src)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/candy
|
||||
name = "candy"
|
||||
desc = "Nougat love it or hate it."
|
||||
|
||||
@@ -57,6 +57,16 @@
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/isanimal(A)
|
||||
if(istype(A, /mob/living/simple_animal))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/iscorgi(A)
|
||||
if(istype(A, /mob/living/simple_animal/corgi))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/*proc/ishivebot(A)
|
||||
if(A && istype(A, /mob/living/silicon/hivebot))
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user