Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit a283ada

Browse files
committed
Rename grenade bandolier self.isThrownDevice to self.grenadeIsThrownDevice to avoid name collision with the trajectory script
Thanks Just Alex for catching that
1 parent 9e93916 commit a283ada

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Data/Base.rte/Devices/Shared/Scripts/GrenadeBandolier.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ function Create(self)
22
self.grenadeName = self:StringValueExists("GrenadeName") and self:GetStringValue("GrenadeName") or "Frag Grenade";
33
self.grenadeTech = self:StringValueExists("GrenadeTech") and self:GetStringValue("GrenadeTech") or "Base.rte";
44

5-
self.isThrownDevice = self:NumberValueExists("IsThrownDevice");
6-
local appropriateGrenadeCreateFunction = self.isThrownDevice and CreateThrownDevice or CreateTDExplosive;
5+
self.grenadeIsThrownDevice = self:NumberValueExists("GrenadeIsThrownDevice");
6+
local appropriateGrenadeCreateFunction = self.grenadeIsThrownDevice and CreateThrownDevice or CreateTDExplosive;
77
self.grenadeObject = appropriateGrenadeCreateFunction(self.grenadeName, self.grenadeTech);
88

99
self.bandolierKey = self.grenadeTech .. "/" .. self.PresetName;
@@ -31,7 +31,7 @@ function OnAttach(self, newParent)
3131

3232
attachable:SetStringValue("GrenadeName", self.grenadeName);
3333
attachable:SetStringValue("GrenadeTech", self.grenadeTech);
34-
if self.isThrownDevice then
34+
if self.grenadeIsThrownDevice then
3535
attachable:SetNumberValue("GrenadeIsThrownDevice", 1);
3636
end
3737
attachable:SetNumberValue("GrenadeMass", self.grenadeMass);

0 commit comments

Comments
 (0)