Added the "speed" statistic

This commit is contained in:
Kayne Ruse
2014-05-16 17:56:40 +10:00
parent b1d6e5a314
commit 873715b28c
4 changed files with 7 additions and 3 deletions
+1
View File
@@ -71,6 +71,7 @@ CREATE TABLE IF NOT EXISTS PlayerCharacters (
defence INTEGER DEFAULT 0, defence INTEGER DEFAULT 0,
intelligence INTEGER DEFAULT 0, intelligence INTEGER DEFAULT 0,
resistance INTEGER DEFAULT 0, resistance INTEGER DEFAULT 0,
speed INTEGER DEFAULT 0,
accuracy REAL DEFAULT 0.0, accuracy REAL DEFAULT 0.0,
evasion REAL DEFAULT 0.0, evasion REAL DEFAULT 0.0,
luck REAL DEFAULT 0.0, luck REAL DEFAULT 0.0,
+1
View File
@@ -50,6 +50,7 @@ struct CharacterData {
int defence = 0; int defence = 0;
int intelligence = 0; int intelligence = 0;
int resistance = 0; int resistance = 0;
int speed = 0;
float accuracy = 0.0; float accuracy = 0.0;
float evasion = 0.0; float evasion = 0.0;
float luck = 0.0; float luck = 0.0;
+4 -3
View File
@@ -131,9 +131,10 @@ int ServerApplication::LoadCharacter(int owner, std::string handle, std::string
newChar.defence = sqlite3_column_int(statement, 15); newChar.defence = sqlite3_column_int(statement, 15);
newChar.intelligence = sqlite3_column_int(statement, 16); newChar.intelligence = sqlite3_column_int(statement, 16);
newChar.resistance = sqlite3_column_int(statement, 17); newChar.resistance = sqlite3_column_int(statement, 17);
newChar.accuracy = sqlite3_column_double(statement, 18); newChar.speed = sqlite3_column_int(statement, 18);
newChar.evasion = sqlite3_column_double(statement, 19); newChar.accuracy = sqlite3_column_double(statement, 19);
newChar.luck = sqlite3_column_double(statement, 20); newChar.evasion = sqlite3_column_double(statement, 20);
newChar.luck = sqlite3_column_double(statement, 21);
//TODO: equipment //TODO: equipment
+1
View File
@@ -40,6 +40,7 @@ struct EnemyData {
int defence = 0; int defence = 0;
int intelligence = 0; int intelligence = 0;
int resistance = 0; int resistance = 0;
int speed = 0;
float accuracy = 0.0; float accuracy = 0.0;
float evasion = 0.0; float evasion = 0.0;
float luck = 0.0; float luck = 0.0;