equal
deleted
inserted
replaced
79 |
79 |
80 HedgewarsScriptLoad("/Scripts/Locale.lua") |
80 HedgewarsScriptLoad("/Scripts/Locale.lua") |
81 HedgewarsScriptLoad("/Scripts/OfficialChallenges.lua") |
81 HedgewarsScriptLoad("/Scripts/OfficialChallenges.lua") |
82 HedgewarsScriptLoad("/Scripts/Tracker.lua") |
82 HedgewarsScriptLoad("/Scripts/Tracker.lua") |
83 HedgewarsScriptLoad("/Scripts/Params.lua") |
83 HedgewarsScriptLoad("/Scripts/Params.lua") |
|
84 HedgewarsScriptLoad("/Scripts/Utils.lua") |
84 HedgewarsScriptLoad("/Scripts/TechMaps.lua") |
85 HedgewarsScriptLoad("/Scripts/TechMaps.lua") |
85 |
86 |
86 ------------------ |
87 ------------------ |
87 -- Got Variables? |
88 -- Got Variables? |
88 ------------------ |
89 ------------------ |
791 end |
792 end |
792 |
793 |
793 end |
794 end |
794 |
795 |
795 function onGameInit() |
796 function onGameInit() |
|
797 |
|
798 TemplateFilter = 0 |
|
799 |
|
800 if MapGen == mgDrawn then |
|
801 eraseMap(false) |
|
802 else |
|
803 MapGen = mgDrawn |
|
804 end |
|
805 |
796 if mapID == nil then |
806 if mapID == nil then |
797 mapID = 2 + GetRandom(7) |
807 mapID = 2 + GetRandom(7) |
798 end |
808 end |
799 |
809 |
800 addHashData(mapID) |
810 addHashData(mapID) |
801 |
811 |
802 Theme = "Cave" |
812 Theme = "Cave" |
803 Map = "" |
813 Map = "" |
804 |
814 |
805 MapGen = mgDrawn |
815 EnableGameFlags(gfInfAttack, gfDisableWind, gfBorder) |
806 TemplateFilter = 0 |
816 DisableGameFlags(gfSolidLand) |
807 |
817 CaseFreq = 0 |
808 EnableGameFlags(gfInfAttack, gfDisableWind, gfBorder) |
818 TurnTime = 90000 |
809 DisableGameFlags(gfSolidLand) |
819 WaterRise = 0 |
810 CaseFreq = 0 |
820 HealthDecrease = 0 |
811 TurnTime = 90000 |
821 |
812 WaterRise = 0 |
822 for x = 1, 16 do |
813 HealthDecrease = 0 |
823 AddPoint(x*100,100,5) |
814 |
824 end |
815 for x = 1, 16 do |
825 |
816 AddPoint(x*100,100,5) |
826 FlushPoints() |
817 end |
|
818 |
|
819 FlushPoints() |
|
820 |
827 |
821 end |
828 end |
822 |
829 |
823 function limitHogs(gear) |
830 function limitHogs(gear) |
824 |
831 |