Skip to content

Commit

Permalink
Merge pull request #287 from DragonSlayer62/House-Addon-Redeed-Fix
Browse files Browse the repository at this point in the history
Fixed House Addons in Homes
  • Loading branch information
Xoduz authored Jan 25, 2025
2 parents ba77641 + 4506d44 commit 742d2f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 10 additions & 1 deletion data/js/server/house/houseCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -1522,8 +1522,17 @@ function DemolishHouse( pSocket, iMulti )
iMulti.RemoveTrashCont( itemInHouse );
itemInHouse.Delete();
}
else if( itemInHouse.movable == 2 ) // items placed as part of the house itself like forge/anvil in smithy
else if( itemInHouse.movable == 2 || itemInHouse.GetTag( "deed" )) // items placed as part of the house itself like forge/anvil in smithy or the addon deed
{
var addonDeed = itemInHouse.GetTag( "deed" );
if( addonDeed )
{
var newDeed = CreateDFNItem( pSocket, pSocket.currentChar, addonDeed, 1, "ITEM", true );
if( newDeed )
{
pSocket.SysMessage( GetDictionaryEntry( 1970, pSocket.language )); // A deed for the house add-on has been placed in your backpack.
}
}
itemInHouse.Delete();
}
else if( itemInHouse.isLockedDown )
Expand Down
6 changes: 4 additions & 2 deletions source/Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
Add this properties to any weapon/armor/jewlery will give the player more hp/mana/stam why its equiped. depending on number you add with it
These are also available as JS Engine object properties: .healthBonus, .staminaBonus, .manaBonus

29/05/2024 - Dragon Slayer
House add-on deeds are now returned when an add-on is present in the house on demolish.

27/05/2024 - Dragon Slayer
Added Missing Wand ID's to combat weapon type in core and in js.

13/05/2024 - Dragon Slayer
Added New Shield Type 107 so shield ID's no longer have to be in hard code for shields to work properly

Expand All @@ -20,7 +23,6 @@
-ARTIFACTRARITY=#
-Artifact Rarity is an item property that is visible on some artifacts and meant to give players an idea of how rare the item is. Items with rarity 1 are supposed to be common while rarity 12 are extremely scarce.


1/05/2024 - Dragon Slayer/Xuri
Fixed AutoUnequipAttempt function in clumsy.js, createfood.js level1target.js, will no longer fail on casting and return to hardcode.
Fixed createfood to check for reagents on cast.
Expand Down

0 comments on commit 742d2f1

Please sign in to comment.