#Fixed a few items not being examinable when on the hud.

#Most ninja suit abilities will not be available unless the suit is initialized (such as stealth and the alike).
#Ninja suit now comes with a basic energy system. It begins with 10000 and depletes 5 energy/tick. Having an energy blade depeletes +20 energy. Having stealth active depelets +25 energy.
#Ninjas start with 10 smoke bombs. When used they are gone forever.
#Other abilities now require and use energy.
#Recovering energy is possible by clicking on APCs with an empty hand, ~1000e/5 seconds. There is no battery energy limit. Plan to add more ways to get energy later.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1438 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
noisomehollow@lycos.com
2011-04-13 01:57:35 +00:00
parent 74d1c3600e
commit 280bb7db4c
8 changed files with 133 additions and 70 deletions
+29 -2
View File
@@ -437,6 +437,35 @@
/obj/machinery/power/apc/attack_hand(mob/user)
add_fingerprint(user)
if(ishuman(user))
var/mob/living/carbon/human/U = user
if(istype(U.gloves, /obj/item/clothing/gloves/space_ninja)&&!U.gloves:canremove&&!U.gloves:draining)
var/obj/item/clothing/suit/space/space_ninja/S = U.wear_suit
var/obj/item/clothing/gloves/space_ninja/G = U.gloves
// emagged = 1
// locked = 0
user << "\blue Now charging battery..."
G.draining = 1
if(cell&&cell.charge)
while(cell.charge>0)
var/drain = rand(500,1500)
if(cell.charge<drain)
drain = cell.charge
if (do_after(user,50))
var/datum/effects/system/spark_spread/spark_system = new /datum/effects/system/spark_spread()
spark_system.set_up(5, 0, src.loc)
spark_system.start()
playsound(src.loc, "sparks", 50, 1)
cell.charge-=drain
S.charge+=drain
U << "\blue Gained <B>[drain]</B> energy from the APC (<B>[cell.charge]</B> charge remaining)."
else break
G.draining = 0
return
else
U << "\red This machine has run dry of power. You must find another."
return
if(opened && (!istype(user, /mob/living/silicon)))
if(cell)
usr.put_in_hand(cell)
@@ -455,8 +484,6 @@
user.machine = src
src.interact(user)
/obj/machinery/power/apc/proc/interact(mob/user)
if ( (get_dist(src, user) > 1 ))