mirror of
https://github.com/goonstation/goonstation-r4407.git
synced 2026-07-14 07:32:19 +01:00
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
/obj/kitchenspike/attack_paw(mob/user as mob)
|
|
return src.attack_hand(usr)
|
|
|
|
/obj/kitchenspike/attackby(obj/item/weapon/grab/G as obj, mob/user as mob)
|
|
if(!istype(G, /obj/item/weapon/grab))
|
|
return
|
|
if(!istype(G.affecting, /mob/living/carbon/monkey))
|
|
user << "\red They are too big for the spike, try something smaller!"
|
|
return
|
|
|
|
if(src.occupied == 0)
|
|
src.icon_state = "spikebloody"
|
|
src.occupied = 1
|
|
src.meat = 5
|
|
var/mob/dead/observer/newmob
|
|
for(var/mob/O in viewers(src, null))
|
|
O.show_message(text("\red [user] has forced [G.affecting] onto the spike, killing them instantly!"))
|
|
if (G.affecting.client)
|
|
newmob = new/mob/dead/observer(G.affecting)
|
|
G.affecting:client:mob = newmob
|
|
newmob:client:eye = newmob
|
|
del(G.affecting)
|
|
del(G)
|
|
|
|
else
|
|
user << "\red The spike already has a monkey on it, finish collecting his meat first!"
|
|
|
|
/obj/kitchenspike/attack_hand(mob/user as mob)
|
|
if(..())
|
|
return
|
|
if(src.occupied)
|
|
if(src.meat > 1)
|
|
src.meat--
|
|
new /obj/item/weapon/reagent_containers/food/snacks/monkeymeat( src.loc )
|
|
usr << "You remove some meat from the monkey."
|
|
else if(src.meat == 1)
|
|
src.meat--
|
|
new /obj/item/weapon/reagent_containers/food/snacks/monkeymeat(src.loc)
|
|
usr << "You remove the last piece of meat from the monkey!"
|
|
src.icon_state = "spike"
|
|
src.occupied = 0
|
|
|
|
|