Revert "Implemented proportional armor modifier, applied armor in other damage types and consume armor when player is damaged"

This commit is contained in:
Shoghi Cervantes
2015-03-18 17:26:06 +01:00
parent 7c0bd45d1d
commit d34499e67b
31 changed files with 203 additions and 397 deletions

View File

@ -25,7 +25,6 @@ use pocketmine\entity\Human;
use pocketmine\event\entity\EntityArmorChangeEvent;
use pocketmine\event\entity\EntityInventoryChangeEvent;
use pocketmine\event\player\PlayerItemHeldEvent;
use pocketmine\item\Armor;
use pocketmine\item\Item;
use pocketmine\network\protocol\ContainerSetContentPacket;
use pocketmine\network\protocol\ContainerSetSlotPacket;
@ -300,15 +299,6 @@ class PlayerInventory extends BaseInventory{
return $armor;
}
public function getArmorPoints(){
$points = 0;
foreach($this->getArmorContents() as $i){
if($i instanceof Armor){
$points += $i->getArmorPoints();
}
}
return $points;
}
public function clearAll(){
$limit = $this->getSize() + 4;
for($index = 0; $index < $limit; ++$index){
@ -483,4 +473,4 @@ class PlayerInventory extends BaseInventory{
return parent::getHolder();
}
}
}