Skip to content

Commit 4854cd7

Browse files
committed
Tweak mission hints.
* Added a hint about how mex income sharing works (ignoring overdrive) to two mid-campaign planets with a prominent ally that previously only had three hints. * Expanded hints for the Krow mission to talk about how to use Krow (rather than just how to use Cluster Bomb), and added a hint pointing people at retreat zones. * Cut hints down to four for Kirdipan (since the window is now expanded to show all hints). * Some other minor fiddling.
1 parent ed7b090 commit 4854cd7

6 files changed

Lines changed: 45 additions & 28 deletions

File tree

LuaMenu/widgets/gui_campaign_handler.lua

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ function widget:GetInfo()
1313
}
1414
end
1515

16+
local DEBUG_SHOW_ALLY = false
17+
local DEBUG_SHOW_INGAME_BRIEF = false
18+
1619
local GALAXY_IMAGE = LUA_DIRNAME .. "images/heic1403aDowngrade.jpg"
1720
local IMAGE_BOUNDS = {
1821
x = 810/4000,
@@ -930,7 +933,7 @@ end
930933

931934
local function SelectPlanet(popupOverlay, planetHandler, planetID, planetData, startable)
932935
local Configuration = WG.Chobby.Configuration
933-
local debugBriefWindow = Configuration.debugMode and InitializeBriefingWindow(planetData)
936+
local debugBriefWindow = DEBUG_SHOW_INGAME_BRIEF and Configuration.debugMode and InitializeBriefingWindow(planetData)
934937

935938
WG.Chobby.interfaceRoot.GetRightPanelHandler().CloseTabs()
936939
WG.Chobby.interfaceRoot.GetMainWindowHandler().CloseTabs()
@@ -1474,7 +1477,7 @@ local function GetPlanet(popupOverlay, planetListHolder, planetID, planetData, a
14741477
if (not LIVE_TESTING) and Configuration.debugMode then
14751478
local number = Label:New {
14761479
x = 3,
1477-
y = 0,
1480+
y = 8,
14781481
right = 6,
14791482
align = "center",
14801483
valign = "top",
@@ -1484,24 +1487,26 @@ local function GetPlanet(popupOverlay, planetListHolder, planetID, planetData, a
14841487
parent = image,
14851488
}
14861489

1487-
local allies = 1 -- The player
1488-
for i = 1, #planetData.gameConfig.aiConfig do
1489-
if planetData.gameConfig.aiConfig[i].allyTeam == 0 then
1490-
allies = allies + 1
1490+
if DEBUG_SHOW_ALLY then
1491+
local allies = 1 -- The player
1492+
for i = 1, #planetData.gameConfig.aiConfig do
1493+
if planetData.gameConfig.aiConfig[i].allyTeam == 0 then
1494+
allies = allies + 1
1495+
end
14911496
end
1497+
local enemies = #planetData.gameConfig.aiConfig - allies + 1
1498+
local teamSizes = Label:New {
1499+
x = 3,
1500+
y = 20,
1501+
right = 6,
1502+
align = "center",
1503+
valign = "top",
1504+
caption = allies .. "v" .. enemies,
1505+
fontsize = 8,
1506+
objectOverrideFont = Configuration:GetFont(3),
1507+
parent = image,
1508+
}
14921509
end
1493-
local enemies = #planetData.gameConfig.aiConfig - allies + 1
1494-
local teamSizes = Label:New {
1495-
x = 3,
1496-
y = 20,
1497-
right = 6,
1498-
align = "center",
1499-
valign = "top",
1500-
caption = allies .. "v" .. enemies,
1501-
fontsize = 8,
1502-
objectOverrideFont = Configuration:GetFont(3),
1503-
parent = image,
1504-
}
15051510
end
15061511

15071512
local function UpdateSize(sizeScale)

campaign/sample/planets/planet10.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ local function GetPlanet(planetUtilities, planetID)
4242
image = "unitpics/veharty.png",
4343
text = [[Badgers are very good for grinding down your opposition. They fire mines which can make a region practically impassable for the enemy. They are almost defenseless unless you plan ahead with some well placed mines, so make sure they don't get flanked. Press F to force your Badgers to fire at a given location.]]
4444
},
45-
{
46-
image = "unitpics/module_dmg_booster.png",
47-
text = [[The water on this planet is acidic. Don't move your Commander into it.]]
48-
},
4945
{
5046
image = "unitpics/spidercrabe.png",
5147
text = [[Your ally's Spiders can climb up sheer cliffs, so there are some parts of the battlefield which they will be better at fighting over. The heavy Crab spider in particular is a potent fighting force even when alone.]]
5248
},
49+
{
50+
image = "unitpics/module_dmg_booster.png",
51+
text = [[The water on this planet is acidic. Don't move your Commander into it.]]
52+
},
5353
},
5454
gameConfig = {
5555
mapName = "Quicksilver 1.1",

campaign/sample/planets/planet17.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ local function GetPlanet(planetUtilities, planetID)
4343
image = "unitpics/striderdante.png",
4444
text = [[The Dante's heatrays and napalm rockets are most lethal at close range. Keep your distance until the Dante is disarmed or dead.]]
4545
},
46+
{
47+
image = "LuaUI/Images/ibeam.png",
48+
text = [[Metal income from extractors is split evenly between allies, with a small amount of extra income temporarily sent to the builder of an extractor as payment. Reclaim is private though, as is any metal in storage. Mouse over the metal icon at the top of the screen for a detailed breakdown.]]
49+
},
4650
},
4751
gameConfig = {
4852
mapName = "Violence_4.2",

campaign/sample/planets/planet18.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,13 @@ local function GetPlanet(planetUtilities, planetID)
3232
,
3333
extendedText = "Simple automated defenses are usually easily overcome, if only I didn't have to compress most of my construction blueprints to make room for terrain manipulation technology. I really, really hope I can revert that compression later."
3434
.. "\n "
35-
.. "\nI will have to use terraforming (at a 50% discount) to clog up or bypass the defenses surrounding the Interception Network, so I can jam hostile units and make my escape."
35+
.. "\nI will have to use advanced terraforming (at a 50% discount, and not blocked by nearby enemies) to clog up or bypass the defenses surrounding the Interception Network, so I can jam hostile units and make my escape."
3636
},
3737
tips = {
3838
{
3939
image = "LuaUI/Images/commands/level.png",
4040
text = [[Every constructor is a powerful terraformer with access to five commands: Ramp, Level, Raise, Restore and Smooth. Read the tooltips and experiment with the commands as each has quite a few modifers and options. Consult the online manual for more details.]]
4141
},
42-
{
43-
image = "LuaUI/Images/commands/ramp.png",
44-
text = [[In this mission only, your terraforming tools are half cost and are not affected by nearby enemy units and structures. Feel free to experiment.]]
45-
},
4642
{
4743
image = "unitpics/shieldscout.png",
4844
text = [[Dirtbags are curious bots with many unfulfilled aspirations. They want to scout and fight but are almost blind and their only attack is a headbutt. They try to terraform but all they manage is to drop a little pile of dirt upon their death. The good side is that they are very cheap and quite tough.]]

campaign/sample/planets/planet34.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ local function GetPlanet(planetUtilities, planetID)
4444
image = "unitpics/planefighter.png",
4545
text = [[Swifts are good for intercepting enemy bombers or protecting your own. Use the manual fire (default hotkey D) to activate a speed boost.]]
4646
},
47+
{
48+
image = "LuaUI/Images/ibeam.png",
49+
text = [[Metal income from extractors is split evenly between allies, with a small amount of extra income temporarily sent to the builder of an extractor as payment. Reclaim is private though, as is any metal in storage. Mouse over the metal icon at the top of the screen for a detailed breakdown.]]
50+
},
4751
},
4852
gameConfig = {
4953
mapName = "Valles_Marineris_v2",

campaign/sample/planets/planet39.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,15 @@ local function GetPlanet(planetUtilities, planetID)
4141
},
4242
{
4343
image = "unitpics/gunshipkrow.png",
44-
text = [[Make sure your own units are well out of the way when you use the manual fire weapon of the Krow (default hotkey D). Its massive barrage of Cluster Bombs do not distinguish between friend and foe.]]
44+
text = [[Krow is designed to hurl itself at the enemy, destroy everything around it, then retreat for repairs before a response arrives. Invest in constructors, such as Wasp or Caretakers, to reduce downtime. Strike a good balance between fighting and survival to amass an overwhelming force without losing the mainland.]]
45+
},
46+
{
47+
image = "LuaUI/Images/Commands/Bold/bomb.png",
48+
text = [[Make sure your own units are well out of the way when you use the manual fire weapon of the Krow (default hotkey D). Its massive barrage of Cluster Bombs deals heavy damage directly below itself, and does not distinguish between friend and foe.]]
49+
},
50+
{
51+
image = "LuaUI/Images/Commands/Bold/retreat.png",
52+
text = [[Units can be told to retreat to a preset zone when damaged. Place zones with the reatreat icon in the top left and tell units when to retreat via the retreat state (right size of the command panel). Automatic retreat lacks finesse, so is best used for swarms of Tridents rather than individual Krows.]]
4553
},
4654
},
4755
gameConfig = {

0 commit comments

Comments
 (0)