mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Feature] Implement Heroic Strikethrough to NPCs (#2395)
* [Feature] Implement Heroic Strikethrough to NPCs * Removed virtual from inline int32 GetHeroicStrikethrough() * Fix formatting * Removed unnecessary function
This commit is contained in:
@@ -143,6 +143,7 @@ public:
|
||||
int flymode;
|
||||
int always_aggro;
|
||||
int exp_mod;
|
||||
int heroic_strikethrough;
|
||||
};
|
||||
|
||||
static std::string PrimaryKey()
|
||||
@@ -277,6 +278,7 @@ public:
|
||||
"flymode",
|
||||
"always_aggro",
|
||||
"exp_mod",
|
||||
"heroic_strikethrough",
|
||||
};
|
||||
}
|
||||
|
||||
@@ -407,6 +409,7 @@ public:
|
||||
"flymode",
|
||||
"always_aggro",
|
||||
"exp_mod",
|
||||
"heroic_strikethrough",
|
||||
};
|
||||
}
|
||||
|
||||
@@ -571,6 +574,7 @@ public:
|
||||
e.flymode = -1;
|
||||
e.always_aggro = 0;
|
||||
e.exp_mod = 100;
|
||||
e.heroic_strikethrough = 0;
|
||||
|
||||
return e;
|
||||
}
|
||||
@@ -730,6 +734,7 @@ public:
|
||||
e.flymode = atoi(row[121]);
|
||||
e.always_aggro = atoi(row[122]);
|
||||
e.exp_mod = atoi(row[123]);
|
||||
e.heroic_strikethrough = atoi(row[124]);
|
||||
|
||||
return e;
|
||||
}
|
||||
@@ -886,6 +891,7 @@ public:
|
||||
v.push_back(columns[121] + " = " + std::to_string(e.flymode));
|
||||
v.push_back(columns[122] + " = " + std::to_string(e.always_aggro));
|
||||
v.push_back(columns[123] + " = " + std::to_string(e.exp_mod));
|
||||
v.push_back(columns[124] + " = " + std::to_string(e.heroic_strikethrough));
|
||||
|
||||
auto results = db.QueryDatabase(
|
||||
fmt::format(
|
||||
@@ -1184,6 +1190,7 @@ public:
|
||||
v.push_back(std::to_string(e.flymode));
|
||||
v.push_back(std::to_string(e.always_aggro));
|
||||
v.push_back(std::to_string(e.exp_mod));
|
||||
v.push_back(std::to_string(e.heroic_strikethrough));
|
||||
|
||||
insert_chunks.push_back("(" + Strings::Implode(",", v) + ")");
|
||||
}
|
||||
@@ -1341,6 +1348,7 @@ public:
|
||||
e.flymode = atoi(row[121]);
|
||||
e.always_aggro = atoi(row[122]);
|
||||
e.exp_mod = atoi(row[123]);
|
||||
e.heroic_strikethrough = atoi(row[124]);
|
||||
|
||||
all_entries.push_back(e);
|
||||
}
|
||||
@@ -1489,6 +1497,7 @@ public:
|
||||
e.flymode = atoi(row[121]);
|
||||
e.always_aggro = atoi(row[122]);
|
||||
e.exp_mod = atoi(row[123]);
|
||||
e.heroic_strikethrough = atoi(row[124]);
|
||||
|
||||
all_entries.push_back(e);
|
||||
}
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
* Manifest: https://github.com/EQEmu/Server/blob/master/utils/sql/db_update_manifest.txt
|
||||
*/
|
||||
|
||||
#define CURRENT_BINARY_DATABASE_VERSION 9200
|
||||
#define CURRENT_BINARY_DATABASE_VERSION 9201
|
||||
|
||||
#ifdef BOTS
|
||||
#define CURRENT_BINARY_BOTS_DATABASE_VERSION 9029
|
||||
|
||||
Reference in New Issue
Block a user