mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Revert "Implemented proportional armor modifier, applied armor in other damage types and consume armor when player is damaged"
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user