implemented A in a far better way, ha that rhymes (#50)
* implemented A in a far better way, ha that rhymes
This commit is contained in:
@@ -98,6 +98,8 @@ function CapGroup:InitWithName(groupName)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local subsplit = Spearhead.Util.split_string(configPart, "|")
|
local subsplit = Spearhead.Util.split_string(configPart, "|")
|
||||||
if subsplit then
|
if subsplit then
|
||||||
for key, value in pairs(subsplit) do
|
for key, value in pairs(subsplit) do
|
||||||
@@ -112,15 +114,15 @@ function CapGroup:InitWithName(groupName)
|
|||||||
local till = tonumber(dashSeperated[2])
|
local till = tonumber(dashSeperated[2])
|
||||||
|
|
||||||
for i = from, till do
|
for i = from, till do
|
||||||
if targetZone == "A" then
|
if Spearhead.Util.strContains(targetZone, "A") == true then
|
||||||
self._targetZoneIdPerStage[tostring(i)] = tostring(i)
|
self._targetZoneIdPerStage[tostring(i)] = string.gsub(targetZone, "A", tostring(i))
|
||||||
else
|
else
|
||||||
self._targetZoneIdPerStage[tostring(i)] = targetZone
|
self._targetZoneIdPerStage[tostring(i)] = targetZone
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if targetZone == "A" then
|
if Spearhead.Util.strContains(targetZone, "A") == true then
|
||||||
self._targetZoneIdPerStage[tostring(dashSeperated[1])] = tostring(dashSeperated[1])
|
self._targetZoneIdPerStage[tostring(dashSeperated[1])] = string.gsub(targetZone, "A", tostring(dashSeperated[1]))
|
||||||
else
|
else
|
||||||
self._targetZoneIdPerStage[tostring(dashSeperated[1])] = targetZone
|
self._targetZoneIdPerStage[tostring(dashSeperated[1])] = targetZone
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user