function setUp() { parent::setUp(); $this->reset_db(); $this->dbObj->run_sql_file(__DIR__ . '/../vendor/crazedsanity/database/setup/schema.pgsql.sql'); $this->dbObj->run_sql_file(dirname(__FILE__) . '/../docs/sql/tables.sql'); }
function setUp() { parent::setUp(); $this->reset_db(); $this->dbObj->run_sql_file(__DIR__ . '/../vendor/crazedsanity/database/setup/schema.pgsql.sql'); $this->dbObj->run_sql_file(dirname(__FILE__) . '/../docs/sql/tables.sql'); $this->char = new Character(__CLASS__, 1, $this->dbObj); $this->id = $this->char->id; }
function setUp() { parent::setUp(); $this->reset_db(); $this->dbObj->run_sql_file(__DIR__ . '/../vendor/crazedsanity/database/setup/schema.pgsql.sql'); $this->dbObj->run_sql_file(dirname(__FILE__) . '/../docs/sql/tables.sql'); $this->char = new Character(__CLASS__, 1, $this->dbObj); // list of default skills... $this->autoSkills = array(); $this->autoSkills[] = array("Appraise", "int"); $this->autoSkills[] = array("Balance", "dex"); $this->autoSkills[] = array("Bluff", "cha"); $this->autoSkills[] = array("Climb", "str"); $this->autoSkills[] = array("Concentration", "con"); $this->autoSkills[] = array("Craft ()", "int"); $this->autoSkills[] = array("Craft ()", "int"); $this->autoSkills[] = array("Craft ()", "int"); $this->autoSkills[] = array("Decipher Script", "int"); $this->autoSkills[] = array("Diplomacy", "cha"); $this->autoSkills[] = array("Disable Device", "int"); $this->autoSkills[] = array("Disguise", "cha"); $this->autoSkills[] = array("Escape Artist", "dex"); $this->autoSkills[] = array("Forgery", "int"); $this->autoSkills[] = array("Gather Information", "cha"); $this->autoSkills[] = array("Handle Animal", "cha"); $this->autoSkills[] = array("Heal", "wis"); $this->autoSkills[] = array("Hide", "dex"); $this->autoSkills[] = array("intimidate", "cha"); $this->autoSkills[] = array("Jump", "str"); $this->autoSkills[] = array("Knowledge ()", "int"); $this->autoSkills[] = array("Knowledge ()", "int"); $this->autoSkills[] = array("Knowledge ()", "int"); $this->autoSkills[] = array("Knowledge ()", "int"); $this->autoSkills[] = array("Listen", "wis"); $this->autoSkills[] = array("Move Silently", "dex"); $this->autoSkills[] = array("Open Lock", "dex"); $this->autoSkills[] = array("Perform ()", "cha"); $this->autoSkills[] = array("Perform ()", "cha"); $this->autoSkills[] = array("Perform ()", "cha"); $this->autoSkills[] = array("Profession ()", "wis"); $this->autoSkills[] = array("Profession ()", "wis"); $this->autoSkills[] = array("Ride", "dex"); $this->autoSkills[] = array("Search", "int"); $this->autoSkills[] = array("Sense Motive", "wis"); $this->autoSkills[] = array("Sleight of Hand", "dex"); $this->autoSkills[] = array("Spellcraft", "int"); $this->autoSkills[] = array("Spot", "wis"); $this->autoSkills[] = array("Survival", "wis"); $this->autoSkills[] = array("Swim", "str"); $this->autoSkills[] = array("Tumble", "dex"); $this->autoSkills[] = array("Use Magic Device", "cha"); $this->autoSkills[] = array("Use Rope", "dex"); }