Removed duplicates RaceGroups mob_db (#5757)

Removed duplicates RaceGroups mob_db

Fixed change the header output

Thanks to @aleos89 !
This commit is contained in:
idk-whoami 2021-02-27 20:37:09 +07:00 committed by GitHub
parent fe9ec46dc9
commit 7677d06d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 20 deletions

View File

@ -1071,7 +1071,6 @@ Body:
Race: Demihuman
RaceGroups:
Orc: true
RaceGroups:
Clocktower: true
Element: Earth
ElementLevel: 1
@ -8816,7 +8815,6 @@ Body:
Race: Demihuman
RaceGroups:
Orc: true
RaceGroups:
Clocktower: true
Element: Earth
ElementLevel: 1
@ -9985,7 +9983,6 @@ Body:
Race: Demihuman
RaceGroups:
Orc: true
RaceGroups:
Clocktower: true
Element: Fire
ElementLevel: 2
@ -25990,7 +25987,6 @@ Body:
Race: Demihuman
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Swordman_Thief: true
Element: Fire
ElementLevel: 4
@ -26028,7 +26024,6 @@ Body:
Race: Demihuman
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Swordman_Thief: true
Element: Poison
ElementLevel: 4
@ -26067,7 +26062,6 @@ Body:
Race: Demihuman
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Acolyte_Merchant: true
Element: Earth
ElementLevel: 4
@ -26106,7 +26100,6 @@ Body:
Race: Demihuman
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Acolyte_Merchant: true
Element: Holy
ElementLevel: 4
@ -26145,7 +26138,6 @@ Body:
Race: Demihuman
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Mage_Archer: true
Element: Wind
ElementLevel: 4
@ -26184,7 +26176,6 @@ Body:
Race: Demihuman
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Mage_Archer: true
Element: Ghost
ElementLevel: 3
@ -48238,7 +48229,6 @@ Body:
Race: Demihuman
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Swordman_Thief: true
Element: Holy
ElementLevel: 4
@ -48277,7 +48267,6 @@ Body:
Race: Demihuman
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Acolyte_Merchant: true
Element: Fire
ElementLevel: 4
@ -48316,7 +48305,6 @@ Body:
Race: Demihuman
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Mage_Archer: true
Element: Ghost
ElementLevel: 4
@ -48356,7 +48344,6 @@ Body:
Race: Demon
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Acolyte_Merchant: true
Element: Water
ElementLevel: 4
@ -48395,7 +48382,6 @@ Body:
Race: Demon
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Swordman_Thief: true
Element: Poison
ElementLevel: 4
@ -48434,7 +48420,6 @@ Body:
Race: Demihuman
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Mage_Archer: true
Element: Wind
ElementLevel: 4
@ -48473,7 +48458,6 @@ Body:
Race: Demihuman
RaceGroups:
Biolab: true
RaceGroups:
Bio5_Mage_Archer: true
Element: Wind
ElementLevel: 4

View File

@ -3115,18 +3115,18 @@ static bool mob_readdb_sub(char *fields[], int columns, int current) {
if (!header) {
body << YAML::Key << "RaceGroups";
body << YAML::BeginMap;
header = true;
}
body << YAML::Key << name2Upper(constant_lookup(race2.first, "RC2_") + 4) << YAML::Value << "true";
if (!header) {
body << YAML::EndMap;
header = true;
}
}
}
}
if (header)
body << YAML::EndMap;
if (fields[24]) {
int ele = strtol(fields[24], nullptr, 10);