forked from Warzone2100/warzone2100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional difficulty level descriptions for AIs
* support the following keys in JSON files for AIs, by difficulty level: * Easy: "easy_tip" * Medium: "medium_tip" * Hard: "hard_tip" * Insane: "insane_tip" * keys should contain messages explaining differences between levels and any cheats an AI might use (e.g. power bonuses or skipping research) * append non-empty key values to AI difficulty tooltips in an extra line * make key values translatable * fill out key values for all AIs installed by default Fixes Warzone2100#419
- Loading branch information
1 parent
72fa749
commit 3bee689
Showing
9 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
{ | ||
"AI": { | ||
"name": "Nexus", | ||
"slo": "nexus.slo", | ||
"vlo": "nexus.vlo", | ||
"name": "Nexus", | ||
"tip": "Initial AI, now supplanted by NullBot", | ||
"vlo": "nexus.vlo" | ||
"easy_tip": "Gets ~ 25% less power from each oil derrick", | ||
"medium_tip": "Research speed +40% (per minute)", | ||
"hard_tip": "Research speed +60% (per minute)", | ||
"insane_tip": "Gets ~ 100% more power from each oil derrick\nResearch speed +80% (per minute)\nStarts with defensive structures and oil derricks" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{ | ||
"AI": { | ||
"name": "SemperFi", | ||
"slo": "semperfi.slo", | ||
"vlo": "semperfi.vlo", | ||
"name": "SemperFi", | ||
"tip": "Enhanced Nexus AI", | ||
"vlo": "semperfi.vlo" | ||
"easy_tip": "Gets ~ 25% less power from each oil derrick\nDoes not build defenses next to enemy oil derricks\nNever tries a truck rush", | ||
"medium_tip": "Never tries a truck rush", | ||
"insane_tip": "Gets ~ 100% more power from each oil derrick\nStarts with defensive structures and oil derricks" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters