Skip to content

Commit

Permalink
Merge branch 'main' into hotfix/fix-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel authored Nov 21, 2023
2 parents cb91876 + 24c702d commit 33fb5f2
Show file tree
Hide file tree
Showing 52 changed files with 229 additions and 378 deletions.
4 changes: 0 additions & 4 deletions data-otservbr-global/lib/core/storages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2791,10 +2791,6 @@ Storage = {
U12_90 = { -- update 12.90 - Reserved Storages 47851 - 47900
PrimalOrdeal = {
QuestLine = 47851,
Hazard = {
Current = 47856,
Max = 47857,
},
Bosses = {
MagmaBubbleKilled = 47853,
ThePrimalMenaceKilled = 47855,
Expand Down
1 change: 1 addition & 0 deletions data-otservbr-global/lib/quests/quest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ dofile(DATA_DIRECTORY .. "/lib/quests/svargrond_arena.lua")
dofile(DATA_DIRECTORY .. "/lib/quests/the_cursed_crystal.lua")
dofile(DATA_DIRECTORY .. "/lib/quests/the_queen_of_the_banshees.lua")
dofile(DATA_DIRECTORY .. "/lib/quests/their_masters_voice.lua")
dofile(DATA_DIRECTORY .. "/lib/quests/the_primal_ordeal.lua")
14 changes: 14 additions & 0 deletions data-otservbr-global/lib/quests/the_primal_ordeal.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function RegisterPrimalPackBeast(template)
local name = template.name or template.description:gsub("an ", ""):gsub("a ", ""):titleCase()
local primal = Game.createMonsterType(name .. " (Primal)")
local primalMonster = table.copy(template)
primalMonster.experience = 0
primalMonster.loot = {}
primalMonster.name = "Primal Pack Beast"
primalMonster.description = "a primal pack beast"

primalMonster.raceId = nil
primalMonster.Bestiary = nil

primal:register(primalMonster)
end
2 changes: 2 additions & 0 deletions data-otservbr-global/monster/birds/headpecker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,5 @@ monster.immunities = {
}

mType:register(monster)

RegisterPrimalPackBeast(monster)
2 changes: 2 additions & 0 deletions data-otservbr-global/monster/giants/hulking_prehemoth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,5 @@ monster.immunities = {
}

mType:register(monster)

RegisterPrimalPackBeast(monster)
94 changes: 0 additions & 94 deletions data-otservbr-global/monster/mammals/beast_gore_horn.lua

This file was deleted.

95 changes: 0 additions & 95 deletions data-otservbr-global/monster/mammals/beast_gorerilla.lua

This file was deleted.

94 changes: 0 additions & 94 deletions data-otservbr-global/monster/mammals/beast_sabretooth.lua

This file was deleted.

2 changes: 2 additions & 0 deletions data-otservbr-global/monster/mammals/gore_horn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,5 @@ monster.immunities = {
}

mType:register(monster)

RegisterPrimalPackBeast(monster)
2 changes: 2 additions & 0 deletions data-otservbr-global/monster/mammals/gorerilla.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,5 @@ monster.immunities = {
}

mType:register(monster)

RegisterPrimalPackBeast(monster)
2 changes: 2 additions & 0 deletions data-otservbr-global/monster/mammals/nighthunter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,5 @@ monster.immunities = {
}

mType:register(monster)

RegisterPrimalPackBeast(monster)
2 changes: 2 additions & 0 deletions data-otservbr-global/monster/mammals/sabretooth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,5 @@ monster.immunities = {
}

mType:register(monster)

RegisterPrimalPackBeast(monster)
2 changes: 2 additions & 0 deletions data-otservbr-global/monster/plants/stalking_stalk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,5 @@ monster.immunities = {
}

mType:register(monster)

RegisterPrimalPackBeast(monster)
Loading

0 comments on commit 33fb5f2

Please sign in to comment.