function loadArmor($ID) { //check ID is not blank and exists and such $db = DB::GetConn(); $id_con = $db->quoteInto("ID = ?", $ID); $getQuery = "SELECT * FROM `Armor` WHERE {$id_con} limit 1;"; $res = $db->query($getQuery); $obj = $res->fetchObject(); return Armor::loadArmorFromObject($obj); }
public function __construct(\Weapon $weapon, \Armor $armor, array $rings = [], $hp = 100) { $this->hp = $hp; $this->damage = $weapon->getDamage(); $this->cost += $weapon->getCost(); $this->armor = $armor->getArmor(); $this->cost += $armor->getCost(); foreach ($rings as $ring) { $this->damage += $ring->getDamage(); $this->armor += $ring->getArmor(); $this->cost += $ring->getCost(); } }
public function getProtection() { return parent::getProtection() + 6; }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::GOLD_BOOTS, $meta, $count, "Gold Boots"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::CHAIN_HELMET, $meta, $count, "Chainmail Helmet"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::LEATHER_PANTS, $meta, $count, "Leather Pants"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::GOLD_CHESTPLATE, $meta, $count, "Gold Chestplate"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::CHAIN_LEGGINGS, $meta, $count, "Chain Leggings"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::IRON_BOOTS, $meta, $count, "Iron Boots"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::LEATHER_CAP, $meta, $count, "Leather Cap"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::LEATHER_TUNIC, $meta, $count, "Leather Tunic"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::DIAMOND_HELMET, $meta, $count, "Diamond Helmet"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::GOLD_LEGGINGS, $meta, $count, "Gold Leggings"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::CHAIN_BOOTS, $meta, $count, "Chainmail Boots"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::DIAMOND_CHESTPLATE, $meta, $count, "Diamond Chestplate"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::DIAMOND_LEGGINGS, $meta, $count, "Diamond Leggings"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::GOLD_HELMET, $meta, $count, "Gold Helmet"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::DIAMOND_BOOTS, $meta, $count, "Diamond Boots"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::IRON_LEGGINGS, $meta, $count, "Iron Leggings"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::IRON_HELMET, $meta, $count, "Iron Helmet"); }
public function __construct($meta = 0, $count = 1) { parent::__construct(self::IRON_CHESTPLATE, $meta, $count, "Iron Chestplate"); }