Skip to content

Commit

Permalink
Merge branch 'main' into feature/tournament-coins-custom
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel authored Nov 25, 2023
2 parents d19d958 + 9b093c7 commit 7a89496
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
25 changes: 9 additions & 16 deletions data-otservbr-global/monster/quests/annihilator/angry_demon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Angry Demon")
local monster = {}

monster.description = "an angry demon"
monster.experience = 30000
monster.experience = 6000
monster.outfit = {
lookType = 35,
lookHead = 0,
Expand All @@ -13,8 +13,8 @@ monster.outfit = {
lookMount = 0,
}

monster.health = 60000
monster.maxHealth = 60000
monster.health = 8200
monster.maxHealth = 8200
monster.race = "fire"
monster.corpse = 5995
monster.speed = 128
Expand Down Expand Up @@ -57,7 +57,7 @@ monster.light = {
monster.summon = {
maxSummons = 1,
summons = {
{ name = "massive fire elemental", chance = 25, interval = 2000, count = 1 },
{ name = "fire elemental", chance = 10, interval = 2000, count = 1 },
},
}

Expand Down Expand Up @@ -108,19 +108,12 @@ monster.loot = {
}

monster.attacks = {
-- {name ="melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -520},
-- {name ="combat", interval = 2000, chance = 10, type = COMBAT_MANADRAIN, minDamage = 0, maxDamage = -120, range = 7, target = false},
-- {name ="combat", interval = 2000, chance = 20, type = COMBAT_FIREDAMAGE, minDamage = -150, maxDamage = -250, range = 7, radius = 7, shootEffect = CONST_ANI_FIRE, effect = CONST_ME_FIREAREA, target = true},
-- {name ="firefield", interval = 2000, chance = 10, range = 7, radius = 1, shootEffect = CONST_ANI_FIRE, target = true},
-- {name ="combat", interval = 2000, chance = 10, type = COMBAT_LIFEDRAIN, minDamage = -300, maxDamage = -490, length = 8, spread = 3, effect = CONST_ME_PURPLEENERGY, target = false},
-- {name ="combat", interval = 2000, chance = 10, type = COMBAT_ENERGYDAMAGE, minDamage = -210, maxDamage = -300, range = 1, shootEffect = CONST_ANI_ENERGY, target = false},
-- {name ="speed", interval = 2000, chance = 15, speedChange = -700, radius = 1, effect = CONST_ME_MAGIC_RED, target = true, duration = 30000}
{ name = "melee", interval = 2000, chance = 500, minDamage = 0, maxDamage = -1940 },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_MANADRAIN, minDamage = 0, maxDamage = -150, range = 7, target = false },
{ name = "combat", interval = 2000, chance = 20, type = COMBAT_FIREDAMAGE, minDamage = -650, maxDamage = -900, range = 7, radius = 7, shootEffect = CONST_ANI_FIRE, effect = CONST_ME_FIREAREA, target = true },
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -520 },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_MANADRAIN, minDamage = 0, maxDamage = -120, range = 7, target = false },
{ name = "combat", interval = 2000, chance = 20, type = COMBAT_FIREDAMAGE, minDamage = -150, maxDamage = -250, range = 7, radius = 7, shootEffect = CONST_ANI_FIRE, effect = CONST_ME_FIREAREA, target = true },
{ name = "firefield", interval = 2000, chance = 10, range = 7, radius = 1, shootEffect = CONST_ANI_FIRE, target = true },
{ name = "combat", interval = 2000, chance = 20, type = COMBAT_LIFEDRAIN, minDamage = -300, maxDamage = -800, length = 8, spread = 0, effect = CONST_ME_PURPLEENERGY, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_ENERGYDAMAGE, minDamage = -1050, maxDamage = -1500, range = 1, shootEffect = CONST_ANI_ENERGY, target = true },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_LIFEDRAIN, minDamage = -300, maxDamage = -490, length = 8, spread = 3, effect = CONST_ME_PURPLEENERGY, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_ENERGYDAMAGE, minDamage = -210, maxDamage = -300, range = 1, shootEffect = CONST_ANI_ENERGY, target = false },
{ name = "speed", interval = 2000, chance = 15, speedChange = -700, radius = 1, effect = CONST_ME_MAGIC_RED, target = true, duration = 30000 },
}

Expand Down
2 changes: 1 addition & 1 deletion data/scripts/talkactions/player/buy_house.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local buyHouse = TalkAction("!buyhouse")

function buyHouse.onSay(player, words, param)
local housePrice = configManager.getNumber(configKeys.HOUSE_PRICE)
local housePrice = configManager.getNumber(configKeys.HOUSE_PRICE_PER_SQM)
if housePrice == -1 then
return true
end
Expand Down
2 changes: 1 addition & 1 deletion src/creatures/creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ bool Creature::setFollowCreature(std::shared_ptr<Creature> creature) {
onWalkAborted();
}

hasFollowPath = false;
hasFollowPath = true;
forceUpdateFollowPath = false;
m_followCreature = creature;
isUpdatingPath = true;
Expand Down

0 comments on commit 7a89496

Please sign in to comment.