1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Rename "cpu" parameter to correct "humans"

This commit is contained in:
Tomasz Zieliński
2023-10-30 17:21:03 +01:00
parent f39edf9413
commit ec0bf05163
17 changed files with 17 additions and 17 deletions

View File

@@ -2,7 +2,7 @@
"Coldshadow's Fantasy": "Coldshadow's Fantasy":
{ {
"minSize" : "xl+u", "maxSize" : "g+u", "minSize" : "xl+u", "maxSize" : "g+u",
"players" : "4-8", "cpu" : "3-6", "players" : "4-8", "humans" : "3-6",
"zones": "zones":
{ {
"1": "1":

View File

@@ -5117,7 +5117,7 @@
"Midnight Mix 34" : "Midnight Mix 34" :
{ {
"minSize" : "l", "maxSize" : "xl+u", "minSize" : "l", "maxSize" : "xl+u",
"players" : "6", "cpu" : "2", "players" : "6", "humans" : "2",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -2,7 +2,7 @@
"Meeting in Muzgob" : "Meeting in Muzgob" :
{ {
"minSize" : "l", "maxSize" : "xl+u", "minSize" : "l", "maxSize" : "xl+u",
"players" : "2-6", "cpu" : "2", "players" : "2-6", "humans" : "2",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -2,7 +2,7 @@
"Newcomers" : "Newcomers" :
{ {
"minSize" : "m+u", "maxSize" : "xl+u", "minSize" : "m+u", "maxSize" : "xl+u",
"players" : "2-3", "cpu" : "1", "players" : "2-3", "humans" : "1",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -2,7 +2,7 @@
"South of Hell" : "South of Hell" :
{ {
"minSize" : "m+u", "maxSize" : "l+u", "minSize" : "m+u", "maxSize" : "l+u",
"players" : "2", "cpu" : "1", "players" : "2", "humans" : "1",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -2,7 +2,7 @@
"Worlds at War" : "Worlds at War" :
{ {
"minSize" : "m+u", "maxSize" : "xl+u", "minSize" : "m+u", "maxSize" : "xl+u",
"players" : "2", "cpu" : "3", "players" : "2", "humans" : "3",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -2,7 +2,7 @@
"Gauntlet" : "Gauntlet" :
{ {
"minSize" : "m+u", "maxSize" : "xl+u", "minSize" : "m+u", "maxSize" : "xl+u",
"players" : "1", "cpu" : "5", "players" : "1", "humans" : "5",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -2,7 +2,7 @@
"2SM0k" : "2SM0k" :
{ {
"minSize" : "s", "maxSize" : "m+u", "minSize" : "s", "maxSize" : "m+u",
"players" : "2", "cpu" : "6", "players" : "2", "humans" : "6",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -3,7 +3,7 @@
{ {
"minSize" : "s", "maxSize" : "m+u", "minSize" : "s", "maxSize" : "m+u",
"players" : "2", "players" : "2",
"cpu": "1-2", "humans": "1-2",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -2,7 +2,7 @@
"3SB0b" : "3SB0b" :
{ {
"minSize" : "s", "maxSize" : "m+u", "minSize" : "s", "maxSize" : "m+u",
"players" : "2", "cpu" : "1", "players" : "2", "humans" : "1",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -2,7 +2,7 @@
"3SB0c" : "3SB0c" :
{ {
"minSize" : "s+u", "maxSize" : "m+u", "minSize" : "s+u", "maxSize" : "m+u",
"players" : "2", "cpu" : "1", "players" : "2", "humans" : "1",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -2,7 +2,7 @@
"5SB0a" : "5SB0a" :
{ {
"minSize" : "s", "maxSize" : "m+u", "minSize" : "s", "maxSize" : "m+u",
"players" : "2-3", "cpu" : "2", "players" : "2-3", "humans" : "2",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -2,7 +2,7 @@
"5SB0b" : "5SB0b" :
{ {
"minSize" : "s", "maxSize" : "m+u", "minSize" : "s", "maxSize" : "m+u",
"players" : "2-3", "cpu" : "2", "players" : "2-3", "humans" : "2",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -2,7 +2,7 @@
"7SB0b" : "7SB0b" :
{ {
"minSize" : "s", "maxSize" : "l", "minSize" : "s", "maxSize" : "l",
"players" : "2-6", "cpu" : "1", "players" : "2-6", "humans" : "1",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -2,7 +2,7 @@
"7SB0c" : "7SB0c" :
{ {
"minSize" : "s+u", "maxSize" : "l", "minSize" : "s+u", "maxSize" : "l",
"players" : "2-7", "cpu" : "2-6", "players" : "2-7", "humans" : "2-6",
"zones" : "zones" :
{ {
"1" : "1" :

View File

@@ -119,7 +119,7 @@
"description" : "Number of players that will be present on map (human or AI)", "description" : "Number of players that will be present on map (human or AI)",
"type": "string" "type": "string"
}, },
"cpu" : { "humans" : {
"description" : "Optional, number of AI-only players", "description" : "Optional, number of AI-only players",
"type": "string" "type": "string"
}, },

View File

@@ -691,7 +691,7 @@ void CRmgTemplate::serializeJson(JsonSerializeFormat & handler)
serializeSize(handler, minSize, "minSize"); serializeSize(handler, minSize, "minSize");
serializeSize(handler, maxSize, "maxSize"); serializeSize(handler, maxSize, "maxSize");
serializePlayers(handler, players, "players"); serializePlayers(handler, players, "players");
serializePlayers(handler, humanPlayers, "cpu"); // TODO: Rename this parameter serializePlayers(handler, humanPlayers, "humans"); // TODO: Rename this parameter
{ {
auto connectionsData = handler.enterArray("connections"); auto connectionsData = handler.enterArray("connections");