mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
small changes to armor system + maxstacksize of armor is fixed
This commit is contained in:
parent
39f0b29115
commit
f2da48c7e3
48 changed files with 312 additions and 136 deletions
|
|
@ -1,8 +1,17 @@
|
|||
<?php
|
||||
|
||||
class ChainBootsItem extends Item{
|
||||
class ChainBootsItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(CHAIN_BOOTS, $meta, $count, "Chain Boots");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::CHAIN;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 13;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class ChainChestplateItem extends Item{
|
||||
class ChainChestplateItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(CHAIN_CHESTPLATE, $meta, $count, "Chain Chestplate");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::CHAIN;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 16;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class ChainHelmetItem extends Item{
|
||||
class ChainHelmetItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(CHAIN_HELMET, $meta, $count, "Chain Helmet");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::CHAIN;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 11;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class ChainLeggingsItem extends Item{
|
||||
class ChainLeggingsItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(CHAIN_LEGGINGS, $meta, $count, "Chain Leggings");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::CHAIN;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 15;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class DiamondBootsItem extends Item{
|
||||
class DiamondBootsItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(DIAMOND_BOOTS, $meta, $count, "Diamond Boots");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::DIAMOND;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 13;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class DiamondChestplateItem extends Item{
|
||||
class DiamondChestplateItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(DIAMOND_CHESTPLATE, $meta, $count, "Diamond Chestplate");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::DIAMOND;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 16;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class DiamondHelmetItem extends Item{
|
||||
class DiamondHelmetItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(DIAMOND_HELMET, $meta, $count, "Diamond Helmet");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::DIAMOND;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 11;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class DiamondLeggingsItem extends Item{
|
||||
class DiamondLeggingsItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(DIAMOND_LEGGINGS, $meta, $count, "Diamond Leggings");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::DIAMOND;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 15;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class GoldenBootsItem extends Item{
|
||||
class GoldenBootsItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(GOLDEN_BOOTS, $meta, $count, "Golden Boots");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::GOLD;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 13;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class GoldenChestplateItem extends Item{
|
||||
class GoldenChestplateItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(GOLDEN_CHESTPLATE, $meta, $count, "Golden Chestplate");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::GOLD;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 16;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class GoldenHelmetItem extends Item{
|
||||
class GoldenHelmetItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(GOLDEN_HELMET, $meta, $count, "Golden Helmet");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::GOLD;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 11;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class GoldenLeggingsItem extends Item{
|
||||
class GoldenLeggingsItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(GOLDEN_LEGGINGS, $meta, $count, "Golden Leggings");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::GOLD;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 15;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class IronBootsItem extends Item{
|
||||
class IronBootsItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(IRON_BOOTS, $meta, $count, "Iron Boots");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::IRON;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 13;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class IronChestplateItem extends Item{
|
||||
class IronChestplateItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(IRON_CHESTPLATE, $meta, $count, "Iron Chestplate");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::IRON;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 16;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class IronHelmetItem extends Item{
|
||||
class IronHelmetItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(IRON_HELMET, $meta, $count, "Iron Helmet");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::IRON;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 11;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class IronLeggingsItem extends Item{
|
||||
class IronLeggingsItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(IRON_LEGGINGS, $meta, $count, "Iron Leggings");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::IRON;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 15;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class LeatherBootsItem extends Item{
|
||||
class LeatherBootsItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(LEATHER_BOOTS, $meta, $count, "Leather Boots");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::LEATHER;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 13;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class LeatherCapItem extends Item{
|
||||
class LeatherCapItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(LEATHER_CAP, $meta, $count, "Leather Cap");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::LEATHER;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 11;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class LeatherPantsItem extends Item{
|
||||
class LeatherPantsItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(LEATHER_PANTS, $meta, $count, "Leather Pants");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::LEATHER;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 15;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
|
||||
class LeatherTunicItem extends Item{
|
||||
class LeatherTunicItem extends ArmorItem{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(LEATHER_TUNIC, $meta, $count, "Leather Tunic");
|
||||
}
|
||||
|
||||
public function getMaterialDurability(){
|
||||
return Material::LEATHER;
|
||||
}
|
||||
|
||||
public function getBaseDurability(){
|
||||
return 16;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue