Skip to content

Commit 00e8652

Browse files
committed
Fix some Lua scripts - OnDestroy -> Destroy
Fixes *current instances* of #221 But ideally, there should probably be some kind of instrumentation that creates warnings about Lua functions that are defined but not used by anything to prevent issues like this.
1 parent e7f64c3 commit 00e8652

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Data/Browncoats.rte/Devices/Weapons/Heatlance/Heatlance.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ function ThreadedUpdate(self)
126126
end
127127
end
128128

129-
function OnDestroy(self)
129+
function Destroy(self)
130130
self.flameSwingLoopSound.Volume = 0;
131131
self.plumeLoopSound.Volume = 0;
132132
end
133133

134134
function OnDetach(self)
135135
self.flameSwingLoopSound.Volume = 0;
136136
self.plumeLoopSound.Volume = 0;
137-
end
137+
end

Data/Browncoats.rte/Scenes/Objects/Breakables/RefineryConsole/RefineryConsole.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ function Create(self)
66
self.loopSound:Play(self.Pos);
77
end
88

9-
function OnDestroy(self)
9+
function Destroy(self)
1010

1111
self.Activity:SendMessage("RefineryAssault_RefineryConsoleBroken");
1212

13-
end
13+
end

Data/Browncoats.rte/Scenes/Objects/Breakables/RefineryDrill/RefineryDrill.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ function ThreadedUpdate(self)
3333
end
3434
end
3535

36-
function OnDestroy(self)
36+
function Destroy(self)
3737
self.loopSound:Stop(-1);
38-
end
38+
end

Data/Browncoats.rte/Scenes/Objects/Breakables/RefineryGenerator/RefineryGenerator.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ function ThreadedUpdate(self)
1515
end
1616
end
1717

18-
function OnDestroy(self)
18+
function Destroy(self)
1919
self.Activity:SendMessage("RefineryAssault_RefineryGeneratorBroken");
20-
end
20+
end

0 commit comments

Comments
 (0)