-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from pandorabox-io/mobsBeowolfConflictFix
allow mobs to walk on stone
- Loading branch information
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
if 20220116 > tonumber(mobs.version) then return end | ||
-- mobs and beowulf don't play nicely together when stone is made | ||
-- dangerous by beowulf, we counteract that here to make mobs not fear | ||
-- stone and become more challenging again | ||
local is_node_dangerous = mobs.is_node_dangerous | ||
function mobs:is_node_dangerous(mob_object, nodename) | ||
if 'default:stone' == nodename then return false end | ||
return is_node_dangerous(self, mob_object, nodename) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ loot, | |
maptools, | ||
mesecons_mvps, | ||
missions, | ||
mobs, | ||
mobs_animal, | ||
mobs_monster, | ||
moreblocks, | ||
|