1639 |
1639 |
1640 elseif cat[cIndex] == loc("Health Modification Mode") then |
1640 elseif cat[cIndex] == loc("Health Modification Mode") then |
1641 |
1641 |
1642 sGear = GetClosestGear() |
1642 sGear = GetClosestGear() |
1643 if (sGear ~= nil) and (GetGearType(sGear) == gtHedgehog) then |
1643 if (sGear ~= nil) and (GetGearType(sGear) == gtHedgehog) then |
1644 SetHealth(sGear, pMode[pIndex]) |
1644 if pMode[pIndex][2] == "set" then |
|
1645 SetHealth(sGear, pMode[pIndex][1]) |
|
1646 elseif pMode[pIndex][2] == "mod" then |
|
1647 local newHealth = math.max(1, GetHealth(sGear) + tonumber(pMode[pIndex][1])) |
|
1648 SetHealth(sGear, newHealth) |
|
1649 end |
1645 else |
1650 else |
1646 AddCaption(loc("Please click on a hedgehog."),0xffba00ff,capgrpVolume) |
1651 AddCaption(loc("Please click on a hedgehog."),0xffba00ff,capgrpVolume) |
1647 end |
1652 end |
1648 |
1653 |
1649 elseif cat[cIndex] == loc("Sprite Modification Mode") then |
1654 elseif cat[cIndex] == loc("Sprite Modification Mode") then |
1787 elseif cat[cIndex] == loc("Hog Identity Mode") then |
1792 elseif cat[cIndex] == loc("Hog Identity Mode") then |
1788 pMode = {loc("Soldier"),loc("Grenadier"),loc("Sniper"),loc("Pyro"),loc("Ninja"),loc("Commander"),loc("Chef"),loc("Engineer"),loc("Physicist"),loc("Trapper"),loc("Saint"),loc("Clown")} |
1793 pMode = {loc("Soldier"),loc("Grenadier"),loc("Sniper"),loc("Pyro"),loc("Ninja"),loc("Commander"),loc("Chef"),loc("Engineer"),loc("Physicist"),loc("Trapper"),loc("Saint"),loc("Clown")} |
1789 elseif cat[cIndex] == loc("Team Identity Mode") then |
1794 elseif cat[cIndex] == loc("Team Identity Mode") then |
1790 pMode = {"Clowns","Street Fighters","Cybernetic Empire","Color Squad","Fruit","The Police","The Ninja-Samurai Alliance","Pokemon","The Zoo","The Devs","Mushroom Kingdom","Pirates","Gangsters","Twenty-Twenty","Monsters","The Iron Curtain","The Hospital"} |
1795 pMode = {"Clowns","Street Fighters","Cybernetic Empire","Color Squad","Fruit","The Police","The Ninja-Samurai Alliance","Pokemon","The Zoo","The Devs","Mushroom Kingdom","Pirates","Gangsters","Twenty-Twenty","Monsters","The Iron Curtain","The Hospital"} |
1791 elseif cat[cIndex] == loc("Health Modification Mode") then |
1796 elseif cat[cIndex] == loc("Health Modification Mode") then |
1792 pMode = {1, 25, 30, 50, 75, 100, 120, 150, 200, 1000} |
1797 pMode = { {1, "set"}, {25, "set"}, {30, "set"}, {50, "set"}, {75, "set"}, {100, "set"}, {120, "set"}, {150, "set"}, {200, "set"}, {1000, "set"}, |
|
1798 {"+1", "mod"}, {"+10", "mod"}, {"+100", "mod"}, {"-1", "mod"}, {"-10", "mod"}, {"-100", "mod"} } |
1793 elseif cat[cIndex] == loc("Sprite Modification Mode") then |
1799 elseif cat[cIndex] == loc("Sprite Modification Mode") then |
1794 --pMode = {"Sprite Selection Mode","LandFlag Modification Mode","Sprite Erasure Mode"} |
1800 --pMode = {"Sprite Selection Mode","LandFlag Modification Mode","Sprite Erasure Mode"} |
1795 pMode = {loc("LandFlag Modification Mode"),loc("Sprite Erasure Mode")} |
1801 pMode = {loc("LandFlag Modification Mode"),loc("Sprite Erasure Mode")} |
1796 elseif cat[cIndex] == loc("Sprite Testing Mode") or cat[cIndex] == loc("Sprite Placement Mode") then |
1802 elseif cat[cIndex] == loc("Sprite Testing Mode") or cat[cIndex] == loc("Sprite Placement Mode") then |
1797 --for i = 1, #spriteTextArray do |
1803 --for i = 1, #spriteTextArray do |
3325 end |
3331 end |
3326 |
3332 |
3327 -- update display selection criteria |
3333 -- update display selection criteria |
3328 if (curWep == amGirder) or (curWep == amRubber) or (curWep == amAirAttack) then |
3334 if (curWep == amGirder) or (curWep == amRubber) or (curWep == amAirAttack) then |
3329 AddCaption(cat[cIndex],0xffba00ff,capgrpMessage) |
3335 AddCaption(cat[cIndex],0xffba00ff,capgrpMessage) |
3330 AddCaption(pMode[pIndex],0xffba00ff,capgrpMessage2) |
3336 local caption2 |
|
3337 if type(pMode[pIndex]) == "table" then |
|
3338 caption2 = tostring(pMode[pIndex][1]) |
|
3339 else |
|
3340 caption2 = tostring(pMode[pIndex]) |
|
3341 end |
|
3342 AddCaption(caption2,0xffba00ff,capgrpMessage2) |
3331 if superDelete == true then |
3343 if superDelete == true then |
3332 AddCaption(loc("Warning: Deletition Mode Active"),0xffba00ff,capgrpAmmoinfo) |
3344 AddCaption(loc("Warning: Deletition Mode Active"),0xffba00ff,capgrpAmmoinfo) |
3333 end |
3345 end |
3334 end |
3346 end |
3335 |
3347 |