1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +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":
{
"minSize" : "xl+u", "maxSize" : "g+u",
"players" : "4-8", "cpu" : "3-6",
"players" : "4-8", "humans" : "3-6",
"zones":
{
"1":

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -691,7 +691,7 @@ void CRmgTemplate::serializeJson(JsonSerializeFormat & handler)
serializeSize(handler, minSize, "minSize");
serializeSize(handler, maxSize, "maxSize");
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");