Added the "speed" statistic
This commit is contained in:
@@ -71,6 +71,7 @@ CREATE TABLE IF NOT EXISTS PlayerCharacters (
|
||||
defence INTEGER DEFAULT 0,
|
||||
intelligence INTEGER DEFAULT 0,
|
||||
resistance INTEGER DEFAULT 0,
|
||||
speed INTEGER DEFAULT 0,
|
||||
accuracy REAL DEFAULT 0.0,
|
||||
evasion REAL DEFAULT 0.0,
|
||||
luck REAL DEFAULT 0.0,
|
||||
|
||||
@@ -50,6 +50,7 @@ struct CharacterData {
|
||||
int defence = 0;
|
||||
int intelligence = 0;
|
||||
int resistance = 0;
|
||||
int speed = 0;
|
||||
float accuracy = 0.0;
|
||||
float evasion = 0.0;
|
||||
float luck = 0.0;
|
||||
|
||||
@@ -131,9 +131,10 @@ int ServerApplication::LoadCharacter(int owner, std::string handle, std::string
|
||||
newChar.defence = sqlite3_column_int(statement, 15);
|
||||
newChar.intelligence = sqlite3_column_int(statement, 16);
|
||||
newChar.resistance = sqlite3_column_int(statement, 17);
|
||||
newChar.accuracy = sqlite3_column_double(statement, 18);
|
||||
newChar.evasion = sqlite3_column_double(statement, 19);
|
||||
newChar.luck = sqlite3_column_double(statement, 20);
|
||||
newChar.speed = sqlite3_column_int(statement, 18);
|
||||
newChar.accuracy = sqlite3_column_double(statement, 19);
|
||||
newChar.evasion = sqlite3_column_double(statement, 20);
|
||||
newChar.luck = sqlite3_column_double(statement, 21);
|
||||
|
||||
//TODO: equipment
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ struct EnemyData {
|
||||
int defence = 0;
|
||||
int intelligence = 0;
|
||||
int resistance = 0;
|
||||
int speed = 0;
|
||||
float accuracy = 0.0;
|
||||
float evasion = 0.0;
|
||||
float luck = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user