mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Fixed SpiderOS chemical injections to work a lot better. Thanks to Muskets and Darem.
Added a new reagent proc (trans_id_to) to transfer a specific reagent from a list to the target. Finished SpiderOS. If anyone plans to revise PDA code, or maybe do something similar, I highly recommend looking at the SpiderOS verb first. Ninjas may now drain energy from exposed wires, ala a powersink. It takes longer than APCs to begin charging and drains slower. Misc bug fixes and improvements. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1460 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -464,7 +464,7 @@
|
||||
var/totaldrain = 0//Total energy drained.
|
||||
var/datum/effects/system/spark_spread/spark_system = new /datum/effects/system/spark_spread()
|
||||
spark_system.set_up(5, 0, src.loc)
|
||||
while(cell.charge>0&&!maxcapacity)
|
||||
while(G.candrain&&cell.charge>0&&!maxcapacity)
|
||||
drain = rand(100,300)
|
||||
if(cell.charge<drain)
|
||||
drain = cell.charge
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
if(charge)
|
||||
user << "\blue Now charging battery..."
|
||||
G.draining = 1
|
||||
if (do_after(user,30))
|
||||
if (G.candrain&&do_after(user,30))
|
||||
U << "\blue Gained <B>[charge]</B> energy from the cell."
|
||||
if(S.charge+charge>S.maxcharge)
|
||||
S.charge=S.maxcharge
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
var/totaldrain = 0
|
||||
var/datum/effects/system/spark_spread/spark_system = new /datum/effects/system/spark_spread()
|
||||
spark_system.set_up(5, 0, src.loc)
|
||||
while(charge>0&&!maxcapacity)
|
||||
while(G.candrain&&charge>0&&!maxcapacity)
|
||||
drain = rand(100,300)
|
||||
if(charge<drain)
|
||||
drain = charge
|
||||
|
||||
Reference in New Issue
Block a user