From 5764613126e645cc465806554902b43e0227b40a Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Tue, 8 Mar 2022 20:49:05 +0300 Subject: [PATCH] Armor update --- src/API/AchievementAPI.php | 2 +- src/material/Item.php | 20 ++++++++++++++ src/material/item/armor/ChainBoots.php | 27 +++++++++++++++++++ src/material/item/armor/ChainChestplate.php | 27 +++++++++++++++++++ src/material/item/armor/ChainHelmet.php | 27 +++++++++++++++++++ src/material/item/armor/ChainLeggings.php | 27 +++++++++++++++++++ src/material/item/armor/DiamondBoots.php | 27 +++++++++++++++++++ src/material/item/armor/DiamondChestplate.php | 27 +++++++++++++++++++ src/material/item/armor/DiamondHelmet.php | 27 +++++++++++++++++++ src/material/item/armor/DiamondLeggings.php | 27 +++++++++++++++++++ src/material/item/armor/GoldenBoots.php | 27 +++++++++++++++++++ src/material/item/armor/GoldenChestplate.php | 27 +++++++++++++++++++ src/material/item/armor/GoldenHelmet.php | 27 +++++++++++++++++++ src/material/item/armor/GoldenLeggings.php | 27 +++++++++++++++++++ src/material/item/armor/IronBoots.php | 27 +++++++++++++++++++ src/material/item/armor/IronChestplate.php | 27 +++++++++++++++++++ src/material/item/armor/IronHelmet.php | 27 +++++++++++++++++++ src/material/item/armor/IronLeggings.php | 27 +++++++++++++++++++ src/material/item/armor/LeatherBoots.php | 27 +++++++++++++++++++ src/material/item/armor/LeatherCap.php | 27 +++++++++++++++++++ src/material/item/armor/LeatherPants.php | 27 +++++++++++++++++++ src/material/item/armor/LeatherTunic.php | 27 +++++++++++++++++++ 22 files changed, 561 insertions(+), 1 deletion(-) create mode 100644 src/material/item/armor/ChainBoots.php create mode 100644 src/material/item/armor/ChainChestplate.php create mode 100644 src/material/item/armor/ChainHelmet.php create mode 100644 src/material/item/armor/ChainLeggings.php create mode 100644 src/material/item/armor/DiamondBoots.php create mode 100644 src/material/item/armor/DiamondChestplate.php create mode 100644 src/material/item/armor/DiamondHelmet.php create mode 100644 src/material/item/armor/DiamondLeggings.php create mode 100644 src/material/item/armor/GoldenBoots.php create mode 100644 src/material/item/armor/GoldenChestplate.php create mode 100644 src/material/item/armor/GoldenHelmet.php create mode 100644 src/material/item/armor/GoldenLeggings.php create mode 100644 src/material/item/armor/IronBoots.php create mode 100644 src/material/item/armor/IronChestplate.php create mode 100644 src/material/item/armor/IronHelmet.php create mode 100644 src/material/item/armor/IronLeggings.php create mode 100644 src/material/item/armor/LeatherBoots.php create mode 100755 src/material/item/armor/LeatherCap.php create mode 100644 src/material/item/armor/LeatherPants.php create mode 100644 src/material/item/armor/LeatherTunic.php diff --git a/src/API/AchievementAPI.php b/src/API/AchievementAPI.php index 9f0eb076..1f18fb88 100644 --- a/src/API/AchievementAPI.php +++ b/src/API/AchievementAPI.php @@ -92,7 +92,7 @@ class AchievementAPI{ ), ), "leather" => array( - "name" => "Get leather", + "name" => "Cow Tipper", "requires" => array( "buildSword", ), diff --git a/src/material/Item.php b/src/material/Item.php index f16c532e..f8903f61 100755 --- a/src/material/Item.php +++ b/src/material/Item.php @@ -23,6 +23,26 @@ class Item{ public static $class = array( //armor + LEATHER_CAP => "LeatherCapItem", + LEATHER_TUNIC => "LeatherTunicItem", + LEATHER_PANTS => "LeatherPantsItem", + LEATHER_BOOTS => "LeatherBootsItem", + CHAIN_HELMET => "ChainHelmetItem", + CHAIN_CHESTPLATE => "ChainChestplateItem", + CHAIN_LEGGINGS => "ChainLeggingsItem", + CHAIN_BOOTS => "ChainBootsItem", + IRON_HELMET => "IronHelmetItem", + IRON_CHESTPLATE => "IronChestplateItem", + IRON_LEGGINGS => "IronLeggingsItem", + IRON_BOOTS => "IronBootsItem", + DIAMOND_HELMET => "DiamondHelmetItem", + DIAMOND_CHESTPLATE => "DiamondChestplateItem", + DIAMOND_LEGGINGS => "DiamondLeggingsItem", + DIAMOND_BOOTS => "DiamondBootsItem", + GOLDEN_HELMET => "GoldenHelmetItem", + GOLDEN_CHESTPLATE => "GoldenChestplateItem", + GOLDEN_LEGGINGS => "GoldenLeggingsItem", + GOLDEN_BOOTS => "GoldenBootsItem", //food APPLE => "AppleItem", diff --git a/src/material/item/armor/ChainBoots.php b/src/material/item/armor/ChainBoots.php new file mode 100644 index 00000000..3277c8c2 --- /dev/null +++ b/src/material/item/armor/ChainBoots.php @@ -0,0 +1,27 @@ +