|
|
@@ -697,28 +697,31 @@ bool PlayerMessageProcessor::handleCheatCode(const std::string & cheat, PlayerCo
|
|
|
std::string cheatName = boost::to_lower_copy(words[0]);
|
|
|
words.erase(words.begin());
|
|
|
|
|
|
- std::vector<std::string> townTargetedCheats = { "vcmiarmenelos", "vcmibuild", "nwczion" };
|
|
|
+ // VCMI VCMI simple SoD/HotA AB RoE
|
|
|
+ std::vector<std::string> townTargetedCheats = {
|
|
|
+ "vcmiarmenelos", "vcmibuild", "nwczion", "nwccoruscant", "nwconlyamodel"
|
|
|
+ };
|
|
|
std::vector<std::string> playerTargetedCheats = {
|
|
|
- "vcmiformenos", "vcmiresources", "nwctheconstruct",
|
|
|
- "vcmimelkor", "vcmilose", "nwcbluepill",
|
|
|
- "vcmisilmaril", "vcmiwin", "nwcredpill",
|
|
|
- "vcmieagles", "vcmimap", "nwcwhatisthematrix",
|
|
|
- "vcmiungoliant", "vcmihidemap", "nwcignoranceisbliss",
|
|
|
- "vcmiobelisk", "nwcoracle"
|
|
|
+ "vcmiformenos", "vcmiresources", "nwctheconstruct", "nwcwatto", "nwcshrubbery",
|
|
|
+ "vcmimelkor", "vcmilose", "nwcbluepill", "nwcsirrobin",
|
|
|
+ "vcmisilmaril", "vcmiwin", "nwcredpill", "nwctrojanrabbit",
|
|
|
+ "vcmieagles", "vcmimap", "nwcwhatisthematrix", "nwcrevealourselves", "nwcgeneraldirection",
|
|
|
+ "vcmiungoliant", "vcmihidemap", "nwcignoranceisbliss",
|
|
|
+ "vcmiobelisk", "nwcoracle", "nwcprophecy", "nwcalreadygotone"
|
|
|
};
|
|
|
std::vector<std::string> heroTargetedCheats = {
|
|
|
- "vcmiainur", "vcmiarchangel", "nwctrinity",
|
|
|
- "vcmiangband", "vcmiblackknight", "nwcagents",
|
|
|
+ "vcmiainur", "vcmiarchangel", "nwctrinity", "nwcpadme", "nwcavertingoureyes",
|
|
|
+ "vcmiangband", "vcmiblackknight", "nwcagents", "nwcdarthmaul", "nwcfleshwound"
|
|
|
"vcmiglaurung", "vcmicrystal", "vcmiazure",
|
|
|
"vcmifaerie", "vcmiarmy", "vcminissi",
|
|
|
- "vcmiistari", "vcmispells", "nwcthereisnospoon",
|
|
|
- "vcminoldor", "vcmimachines", "nwclotsofguns",
|
|
|
- "vcmiglorfindel", "vcmilevel", "nwcneo",
|
|
|
- "vcminahar", "vcmimove", "nwcnebuchadnezzar",
|
|
|
+ "vcmiistari", "vcmispells", "nwcthereisnospoon", "nwcmidichlorians", "nwctim",
|
|
|
+ "vcminoldor", "vcmimachines", "nwclotsofguns", "nwcr2d2", "nwcantioch",
|
|
|
+ "vcmiglorfindel", "vcmilevel", "nwcneo", "nwcquigon", "nwcigotbetter",
|
|
|
+ "vcminahar", "vcmimove", "nwcnebuchadnezzar", "nwcpodracer", "nwccoconuts",
|
|
|
"vcmiforgeofnoldorking", "vcmiartifacts",
|
|
|
"vcmiolorin", "vcmiexp",
|
|
|
- "vcmiluck", "nwcfollowthewhiterabbit",
|
|
|
- "vcmimorale", "nwcmorpheus",
|
|
|
+ "vcmiluck", "nwcfollowthewhiterabbit", "nwccastleanthrax",
|
|
|
+ "vcmimorale", "nwcmorpheus", "nwcmuchrejoicing",
|
|
|
"vcmigod", "nwctheone",
|
|
|
"vcmiscrolls"
|
|
|
};
|
|
|
@@ -814,10 +817,14 @@ void PlayerMessageProcessor::executeCheatCode(const std::string & cheatName, Pla
|
|
|
std::map<std::string, std::function<void()>> callbacks = {
|
|
|
{"vcmiainur", [&] () {doCheatGiveArmyFixed({ "archangel", "5" });} },
|
|
|
{"nwctrinity", [&] () {doCheatGiveArmyFixed({ "archangel", "5" });} },
|
|
|
+ {"nwcpadme", [&] () {doCheatGiveArmyFixed({ "archangel", "5" });} },
|
|
|
+ {"nwcavertingoureyes", [&] () {doCheatGiveArmyFixed({ "archangel", "5" });} },
|
|
|
{"vcmiangband", [&] () {doCheatGiveArmyFixed({ "blackKnight", "10" });} },
|
|
|
{"vcmiglaurung", [&] () {doCheatGiveArmyFixed({ "crystalDragon", "5000" });} },
|
|
|
{"vcmiarchangel", [&] () {doCheatGiveArmyFixed({ "archangel", "5" });} },
|
|
|
{"nwcagents", [&] () {doCheatGiveArmyFixed({ "blackKnight", "10" });} },
|
|
|
+ {"nwcdarthmaul", [&] () {doCheatGiveArmyFixed({ "blackKnight", "10" });} },
|
|
|
+ {"nwcfleshwound", [&] () {doCheatGiveArmyFixed({ "blackKnight", "10" });} },
|
|
|
{"vcmiblackknight", [&] () {doCheatGiveArmyFixed({ "blackKnight", "10" });} },
|
|
|
{"vcmicrystal", [&] () {doCheatGiveArmyFixed({ "crystalDragon", "5000" });} },
|
|
|
{"vcmiazure", [&] () {doCheatGiveArmyFixed({ "azureDragon", "5000" });} },
|
|
|
@@ -827,12 +834,18 @@ void PlayerMessageProcessor::executeCheatCode(const std::string & cheatName, Pla
|
|
|
{"vcmiistari", doCheatGiveSpells },
|
|
|
{"vcmispells", doCheatGiveSpells },
|
|
|
{"nwcthereisnospoon", doCheatGiveSpells },
|
|
|
+ {"nwcmidichlorians", doCheatGiveSpells },
|
|
|
+ {"nwctim", doCheatGiveSpells },
|
|
|
{"vcmiarmenelos", doCheatBuildTown },
|
|
|
{"vcmibuild", doCheatBuildTown },
|
|
|
{"nwczion", doCheatBuildTown },
|
|
|
+ {"nwccoruscant", doCheatBuildTown },
|
|
|
+ {"nwconlyamodel", doCheatBuildTown },
|
|
|
{"vcminoldor", doCheatGiveMachines },
|
|
|
{"vcmimachines", doCheatGiveMachines },
|
|
|
{"nwclotsofguns", doCheatGiveMachines },
|
|
|
+ {"nwcr2d2", doCheatGiveMachines },
|
|
|
+ {"nwcantioch", doCheatGiveMachines },
|
|
|
{"vcmiforgeofnoldorking", doCheatGiveArtifacts },
|
|
|
{"vcmiartifacts", doCheatGiveArtifacts },
|
|
|
{"vcmiglorfindel", doCheatLevelup },
|
|
|
@@ -843,16 +856,24 @@ void PlayerMessageProcessor::executeCheatCode(const std::string & cheatName, Pla
|
|
|
{"vcminahar", doCheatMovement },
|
|
|
{"vcmimove", doCheatMovement },
|
|
|
{"nwcnebuchadnezzar", doCheatMovement },
|
|
|
+ {"nwcpodracer", doCheatMovement },
|
|
|
+ {"nwccoconuts", doCheatMovement },
|
|
|
{"vcmiformenos", doCheatResources },
|
|
|
{"vcmiresources", doCheatResources },
|
|
|
{"nwctheconstruct", doCheatResources },
|
|
|
+ {"nwcwatto", doCheatResources },
|
|
|
+ {"nwcshrubbery", doCheatResources },
|
|
|
{"nwcbluepill", doCheatDefeat },
|
|
|
+ {"nwcsirrobin", doCheatDefeat },
|
|
|
{"vcmimelkor", doCheatDefeat },
|
|
|
{"vcmilose", doCheatDefeat },
|
|
|
{"nwcredpill", doCheatVictory },
|
|
|
+ {"nwctrojanrabbit", doCheatVictory },
|
|
|
{"vcmisilmaril", doCheatVictory },
|
|
|
{"vcmiwin", doCheatVictory },
|
|
|
{"nwcwhatisthematrix", doCheatMapReveal },
|
|
|
+ {"nwcrevealourselves", doCheatMapReveal },
|
|
|
+ {"nwcgeneraldirection", doCheatMapReveal },
|
|
|
{"vcmieagles", doCheatMapReveal },
|
|
|
{"vcmimap", doCheatMapReveal },
|
|
|
{"vcmiungoliant", doCheatMapHide },
|
|
|
@@ -860,10 +881,14 @@ void PlayerMessageProcessor::executeCheatCode(const std::string & cheatName, Pla
|
|
|
{"nwcignoranceisbliss", doCheatMapHide },
|
|
|
{"vcmiobelisk", doCheatRevealPuzzle },
|
|
|
{"nwcoracle", doCheatRevealPuzzle },
|
|
|
+ {"nwcprophecy", doCheatRevealPuzzle },
|
|
|
+ {"nwcalreadygotone", doCheatRevealPuzzle },
|
|
|
{"vcmiluck", doCheatMaxLuck },
|
|
|
{"nwcfollowthewhiterabbit", doCheatMaxLuck },
|
|
|
+ {"nwccastleanthrax", doCheatMaxLuck },
|
|
|
{"vcmimorale", doCheatMaxMorale },
|
|
|
{"nwcmorpheus", doCheatMaxMorale },
|
|
|
+ {"nwcmuchrejoicing", doCheatMaxMorale },
|
|
|
{"vcmigod", doCheatTheOne },
|
|
|
{"nwctheone", doCheatTheOne },
|
|
|
{"vcmiscrolls", doCheatGiveScrolls },
|