Skip to content

Commit 015b8c7

Browse files
committed
Code comments
1 parent ccaefe0 commit 015b8c7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

C7/Lua/game_modes/standalone.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
--[[
2+
The art replacements for units in the standalone mode.
3+
A key represents a name of a unit prototype,
4+
a value refers to a directory with unit art in C7/Assets/Art/Units
5+
]]
16
local unit_replacement_art_map = {
27
["Settler"] = "Carthaginian Settler",
38
["Worker"] = "Carthaginian Worker",
@@ -28,6 +33,15 @@ local unit_replacement_art_map = {
2833
["Curragh"] = "MinoanGalley",
2934
}
3035

36+
--[[
37+
This function defines the standalone addon to the base ruleset.
38+
39+
This function takes the initial save data from `base-ruleset.json` and
40+
removes the units for which we don't have graphics replacements.
41+
42+
On the C# side, this function is called as part of addon loading logic
43+
in GameModeLoader class
44+
]]
3145
return function(civ3_game_mode)
3246
local updated_unit_prototypes = {}
3347

0 commit comments

Comments
 (0)