Tweaked welding:

Welders that are on but not in use use fuel more slowly than before, when actively welding, fuel use rate increases to roughly 4 times what the previous rate was. This allows for an average of 4 regular walls to be cut through before refueling is needed, based on my testing. Shorter-length welding tasks will allow for more uses between refuels.

Also cleaned up a few things that still used the "click welder at thing, lose x units of fuel" code.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1403 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3
2011-04-07 01:30:39 +00:00
parent c1b1f4323c
commit f6620d08b1
17 changed files with 58 additions and 17 deletions

View File

@@ -132,9 +132,10 @@
else if(istype(I, /obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/W = I
if(W.remove_fuel(2,user))
if(W.remove_fuel(0,user))
playsound(src.loc, 'Welder2.ogg', 100, 1)
user << "Welding the pipe in place."
W:welding = 2
if(do_after(user, 20))
update()
var/pipetype = dpipetype()
@@ -145,6 +146,7 @@
P.updateicon()
del(src)
return
W:welding = 1
else
user << "You need more welding fuel to complete this task."
return

View File

@@ -694,7 +694,8 @@
var/obj/item/weapon/weldingtool/W = I
if(W.welding)
if(W.remove_fuel(3,user))
if(W.remove_fuel(0,user))
W:welding = 2
playsound(src.loc, 'Welder2.ogg', 100, 1)
// check if anything changed over 2 seconds
var/turf/uloc = user.loc
@@ -705,7 +706,7 @@
welded()
else
user << "You must stay still while welding the pipe."
return
W:welding = 1
else
user << "You need more welding fuel to cut the pipe."
return