mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 17:41:56 +00:00
/obj/effects is now /obj/effect. /obj/station_objects is now /obj/structure. Did a bit of minor blob work. The Bay 12 body bags were replaced with closets because having two sets of code that do almost the same thing is silly. Changed back a few of the last jobproc edits as the remove from list before assign was a check to see if the mob was fucked up and if it was remove it so we did not check it again as it would still be fucked up. The medbay/tox monkeys names are random once more. More random name monkeys will help with changeling and clean up the observe/mob menus. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2324 316c924e-a436-60f5-8080-3fe189b3f50e
69 lines
2.4 KiB
Plaintext
69 lines
2.4 KiB
Plaintext
//////Kitchen Spike
|
|
|
|
/obj/structure/kitchenspike
|
|
attack_paw(mob/user as mob)
|
|
return src.attack_hand(usr)
|
|
|
|
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))
|
|
if(src.occupied == 0)
|
|
src.icon_state = "spikebloody"
|
|
src.occupied = 1
|
|
src.meat = 5
|
|
src.meattype = 1
|
|
for(var/mob/O in viewers(src, null))
|
|
O.show_message(text("\red [user] has forced [G.affecting] onto the spike, killing them instantly!"))
|
|
del(G.affecting)
|
|
del(G)
|
|
|
|
else
|
|
user << "\red The spike already has something on it, finish collecting its meat first!"
|
|
else if(istype(G.affecting, /mob/living/carbon/alien))
|
|
if(src.occupied == 0)
|
|
src.icon_state = "spikebloodygreen"
|
|
src.occupied = 1
|
|
src.meat = 5
|
|
src.meattype = 2
|
|
for(var/mob/O in viewers(src, null))
|
|
O.show_message(text("\red [user] has forced [G.affecting] onto the spike, killing them instantly!"))
|
|
del(G.affecting)
|
|
del(G)
|
|
else
|
|
user << "\red The spike already has something on it, finish collecting its meat first!"
|
|
else
|
|
user << "\red They are too big for the spike, try something smaller!"
|
|
return
|
|
|
|
// MouseDrop_T(var/atom/movable/C, mob/user)
|
|
// if(istype(C, /obj/mob/carbon/monkey)
|
|
// else if(istype(C, /obj/mob/carbon/alien) && !istype(C, /mob/living/carbon/alien/larva/metroid))
|
|
// else if(istype(C, /obj/livestock/spesscarp
|
|
|
|
attack_hand(mob/user as mob)
|
|
if(..())
|
|
return
|
|
if(src.occupied)
|
|
if(src.meattype == 1)
|
|
if(src.meat > 1)
|
|
src.meat--
|
|
new /obj/item/weapon/reagent_containers/food/snacks/meat/monkey( 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/meat/monkey(src.loc)
|
|
usr << "You remove the last piece of meat from the monkey!"
|
|
src.icon_state = "spike"
|
|
src.occupied = 0
|
|
else if(src.meattype == 2)
|
|
if(src.meat > 1)
|
|
src.meat--
|
|
new /obj/item/weapon/reagent_containers/food/snacks/xenomeat( src.loc )
|
|
usr << "You remove some meat from the alien."
|
|
else if(src.meat == 1)
|
|
src.meat--
|
|
new /obj/item/weapon/reagent_containers/food/snacks/xenomeat(src.loc)
|
|
usr << "You remove the last piece of meat from the alien!"
|
|
src.icon_state = "spike"
|
|
src.occupied = 0 |