From b41da3b9de30cc90a1c2b9f33ee0d0b6917a5fce Mon Sep 17 00:00:00 2001 From: JoshuaNavarro Date: Wed, 25 Sep 2019 15:05:35 -0700 Subject: [PATCH] Made it so that custom mod tools could be trashed. --- .../Revitalize/Framework/Objects/Items/Tools/AxeExtended.cs | 2 +- .../Revitalize/Framework/Objects/Items/Tools/Chainsaw.cs | 2 +- .../Revitalize/Framework/Objects/Items/Tools/HoeExtended.cs | 2 +- .../Revitalize/Framework/Objects/Items/Tools/MiningDrill.cs | 2 +- .../Framework/Objects/Items/Tools/PickaxeExtended.cs | 5 +++++ .../Framework/Objects/Items/Tools/WateringCanExtended.cs | 2 +- 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/GeneralMods/Revitalize/Framework/Objects/Items/Tools/AxeExtended.cs b/GeneralMods/Revitalize/Framework/Objects/Items/Tools/AxeExtended.cs index fdc621a2..4485fd4c 100644 --- a/GeneralMods/Revitalize/Framework/Objects/Items/Tools/AxeExtended.cs +++ b/GeneralMods/Revitalize/Framework/Objects/Items/Tools/AxeExtended.cs @@ -317,7 +317,7 @@ namespace Revitalize.Framework.Objects.Items.Tools public override bool canBeTrashed() { - return base.canBeTrashed(); + return true; } } diff --git a/GeneralMods/Revitalize/Framework/Objects/Items/Tools/Chainsaw.cs b/GeneralMods/Revitalize/Framework/Objects/Items/Tools/Chainsaw.cs index effaf242..6743defa 100644 --- a/GeneralMods/Revitalize/Framework/Objects/Items/Tools/Chainsaw.cs +++ b/GeneralMods/Revitalize/Framework/Objects/Items/Tools/Chainsaw.cs @@ -288,7 +288,7 @@ namespace Revitalize.Framework.Objects.Items.Tools public override bool canBeTrashed() { - return base.canBeTrashed(); + return true; } } } diff --git a/GeneralMods/Revitalize/Framework/Objects/Items/Tools/HoeExtended.cs b/GeneralMods/Revitalize/Framework/Objects/Items/Tools/HoeExtended.cs index 3320b97e..e5fea117 100644 --- a/GeneralMods/Revitalize/Framework/Objects/Items/Tools/HoeExtended.cs +++ b/GeneralMods/Revitalize/Framework/Objects/Items/Tools/HoeExtended.cs @@ -318,7 +318,7 @@ namespace Revitalize.Framework.Objects.Items.Tools } public override bool canBeTrashed() { - return base.canBeTrashed(); + return true; } } } diff --git a/GeneralMods/Revitalize/Framework/Objects/Items/Tools/MiningDrill.cs b/GeneralMods/Revitalize/Framework/Objects/Items/Tools/MiningDrill.cs index 9da0a860..f516f6cd 100644 --- a/GeneralMods/Revitalize/Framework/Objects/Items/Tools/MiningDrill.cs +++ b/GeneralMods/Revitalize/Framework/Objects/Items/Tools/MiningDrill.cs @@ -403,7 +403,7 @@ namespace Revitalize.Framework.Objects.Items.Tools public override bool canBeTrashed() { - return base.canBeTrashed(); + return true; } } } diff --git a/GeneralMods/Revitalize/Framework/Objects/Items/Tools/PickaxeExtended.cs b/GeneralMods/Revitalize/Framework/Objects/Items/Tools/PickaxeExtended.cs index 791c8a6a..41ad57bc 100644 --- a/GeneralMods/Revitalize/Framework/Objects/Items/Tools/PickaxeExtended.cs +++ b/GeneralMods/Revitalize/Framework/Objects/Items/Tools/PickaxeExtended.cs @@ -326,5 +326,10 @@ namespace Revitalize.Framework.Objects.Items.Tools //this.upgradeLevel.Value = (replacement as Pickaxe).UpgradeLevel; } + + public override bool canBeTrashed() + { + return true; + } } } diff --git a/GeneralMods/Revitalize/Framework/Objects/Items/Tools/WateringCanExtended.cs b/GeneralMods/Revitalize/Framework/Objects/Items/Tools/WateringCanExtended.cs index b573b220..7a79e452 100644 --- a/GeneralMods/Revitalize/Framework/Objects/Items/Tools/WateringCanExtended.cs +++ b/GeneralMods/Revitalize/Framework/Objects/Items/Tools/WateringCanExtended.cs @@ -317,7 +317,7 @@ namespace Revitalize.Framework.Objects.Items.Tools } public override bool canBeTrashed() { - return base.canBeTrashed(); + return true; } } }