mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
project uses tabs instead of spaces(as in CONTRIBUTING.md)
This commit is contained in:
parent
f00318b6ed
commit
62571f26cd
115 changed files with 2291 additions and 2364 deletions
|
|
@ -6,6 +6,6 @@ class DiamondAxeItem extends ItemAxe{
|
|||
}
|
||||
|
||||
public function getDamageAgainstOf($e){
|
||||
return 6;
|
||||
return 6;
|
||||
}
|
||||
}
|
||||
|
|
@ -6,6 +6,6 @@ class DiamondPickaxeItem extends ItemPickaxe{
|
|||
}
|
||||
|
||||
public function getDamageAgainstOf($e){
|
||||
return 5;
|
||||
return 5;
|
||||
}
|
||||
}
|
||||
|
|
@ -5,6 +5,6 @@ class DiamondShovelItem extends ItemShovel{
|
|||
parent::__construct(DIAMOND_SHOVEL, $meta, $count, "Diamond Shovel");
|
||||
}
|
||||
public function getDamageAgainstOf($e){
|
||||
return 4;
|
||||
return 4;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,9 +4,9 @@ class DiamondSwordItem extends ItemSword{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(DIAMOND_SWORD, $meta, $count, "Diamond Sword");
|
||||
}
|
||||
public function getDamageAgainstOf($e)
|
||||
{
|
||||
return 7;
|
||||
}
|
||||
public function getDamageAgainstOf($e)
|
||||
{
|
||||
return 7;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -21,11 +21,11 @@ class FlintSteelItem extends ItemTool{
|
|||
}
|
||||
|
||||
public function useOn($object, $force = false){
|
||||
if(($object instanceof Creeper) and $this->id === FLINT_STEEL){
|
||||
$this->meta++;
|
||||
return true;
|
||||
}else{
|
||||
return parent::useOn($object, $force);
|
||||
}
|
||||
if(($object instanceof Creeper) and $this->id === FLINT_STEEL){
|
||||
$this->meta++;
|
||||
return true;
|
||||
}else{
|
||||
return parent::useOn($object, $force);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5,6 +5,6 @@ class GoldenAxeItem extends ItemAxe{
|
|||
parent::__construct(GOLDEN_AXE, $meta, $count, "Golden Axe");
|
||||
}
|
||||
public function getDamageAgainstOf($e){
|
||||
return 3;
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
|
@ -6,6 +6,6 @@ class GoldenPickaxeItem extends ItemPickaxe{
|
|||
}
|
||||
|
||||
public function getDamageAgainstOf($e){
|
||||
return 2;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,9 +4,9 @@ class GoldenSwordItem extends ItemSword{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(GOLDEN_SWORD, $meta, $count, "Golden Sword");
|
||||
}
|
||||
public function getDamageAgainstOf($e)
|
||||
{
|
||||
return 4;
|
||||
}
|
||||
public function getDamageAgainstOf($e)
|
||||
{
|
||||
return 4;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -6,6 +6,6 @@ class IronAxeItem extends ItemAxe{
|
|||
}
|
||||
|
||||
public function getDamageAgainstOf($e){
|
||||
return 5;
|
||||
return 5;
|
||||
}
|
||||
}
|
||||
|
|
@ -5,6 +5,6 @@ class IronSwordItem extends ItemSword{
|
|||
parent::__construct(IRON_SWORD, $meta, $count, "Iron Sword");
|
||||
}
|
||||
public function getDamageAgainstOf($e){
|
||||
return 6;
|
||||
return 6;
|
||||
}
|
||||
}
|
||||
|
|
@ -6,10 +6,10 @@ class ShearsItem extends ItemTool{
|
|||
}
|
||||
|
||||
public function useOn($object, $force = false){
|
||||
if(($object instanceof Sheep) and $this->id === SHEARS){
|
||||
$this->meta++;
|
||||
return true;
|
||||
}
|
||||
parent::useOn($object, $force);
|
||||
if(($object instanceof Sheep) and $this->id === SHEARS){
|
||||
$this->meta++;
|
||||
return true;
|
||||
}
|
||||
parent::useOn($object, $force);
|
||||
}
|
||||
}
|
||||
|
|
@ -4,9 +4,9 @@ class StoneShovelItem extends ItemShovel{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(STONE_SHOVEL, $meta, $count, "Stone Shovel");
|
||||
}
|
||||
|
||||
|
||||
public function getDamageAgainstOf($e){
|
||||
return 2;
|
||||
return 2;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -6,6 +6,6 @@ class WoodenPickaxeItem extends ItemPickaxe{
|
|||
}
|
||||
|
||||
public function getDamageAgainstOf($e){
|
||||
return 2;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue