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
@@ -145,6 +145,7 @@
return
if(1)
if (W:remove_fuel(0,user))
W:welding = 2
playsound(src.loc, 'Welder2.ogg', 50, 1)
user.visible_message("[user.name] starts to weld the [src.name] to the floor.", \
"You start to weld the [src] to the floor.", \
@@ -152,11 +153,13 @@
if (do_after(user,20))
state = 2
user << "You weld the [src] to the floor."
W:welding = 1
else
user << "\blue You need more welding fuel to complete this task."
return
if(2)
if (W:remove_fuel(0,user))
W:welding = 2
playsound(src.loc, 'Welder2.ogg', 50, 1)
user.visible_message("[user.name] starts to cut the [src.name] free from the floor.", \
"You start to cut the [src] free from the floor.", \
@@ -164,6 +167,7 @@
if (do_after(user,20))
state = 1
user << "You cut the [src] free from the floor."
W:welding = 1
else
user << "\blue You need more welding fuel to complete this task."
return
@@ -109,6 +109,7 @@
return
if(1)
if (W:remove_fuel(0,user))
W:welding = 2
playsound(src.loc, 'Welder2.ogg', 50, 1)
user.visible_message("[user.name] starts to weld the [src.name] to the floor.", \
"You start to weld the [src] to the floor.", \
@@ -116,10 +117,12 @@
if (do_after(user,20))
state = 2
user << "You weld the field generator to the floor."
W:welding = 1
else
return
if(2)
if (W:remove_fuel(0,user))
W:welding = 2
playsound(src.loc, 'Welder2.ogg', 50, 1)
user.visible_message("[user.name] starts to cut the [src.name] free from the floor.", \
"You start to cut the [src] free from the floor.", \
@@ -127,6 +130,7 @@
if (do_after(user,20))
state = 1
user << "You cut the [src] free from the floor."
W:welding = 2
else
return
else