mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-25 17:51:17 +00:00
Metroids:
No, they're not working yet, and I planned on committing this when they were finished, but the basic framework is there. The Metroid in xenobiology now moves around, I guess, kinda like a monkey. ADMINS: !! DO NOT TRY TO POSSESS/CONTROL A METROID, unless you're willing to take a risk! I haven't tested it thoroughly yet, it might have some glitchy results!
Turrets:
Fixed some lingering bugs with the targetting system. Hopefully these should be pretty stable now.
Reagents/Chemicals:
I fixed some problems with virus combinations and weird stuff with the PANDEMIC machine.
There's probably some other stuff people requested I fix on IRC that I didn't mention, I can't remember anything else though. Hopefully this should stabilize some of the more annoying bugs with reagents!
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1759 316c924e-a436-60f5-8080-3fe189b3f50e
69 lines
2.4 KiB
Plaintext
69 lines
2.4 KiB
Plaintext
//////Kitchen Spike
|
|
|
|
/obj/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 |