Welding tool, plasma cutter & misc item fixes/improvements

This commit is contained in:
Regalis
2015-06-10 01:13:34 +03:00
parent d7fde606e9
commit 270efd77e0
32 changed files with 275 additions and 95 deletions
+3 -6
View File
@@ -14,9 +14,7 @@ namespace Subsurface
private Item item;
private Character character;
private Limb limb;
public float Timer
{
get { return timer; }
@@ -28,13 +26,12 @@ namespace Subsurface
delay = ToolBox.GetAttributeFloat(element, "delay", 1.0f);
}
public override void Apply(ActionType type, float deltaTime, Item item, Character character = null, Limb limb = null)
public override void Apply(ActionType type, float deltaTime, Item item, Character character = null)
{
if (this.type != type) return;
this.item = item;
this.character = character;
this.limb = limb;
timer = delay;
@@ -47,7 +44,7 @@ namespace Subsurface
if (timer > 0.0f) return;
base.Apply(1.0f, character, item, limb);
base.Apply(1.0f, character, item);
list.Remove(this);
}