mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-01 01:59:21 +02:00
Missed spell merges, fixes to yelling
One more ops to the list. Yell should work for 30x30 SQMs
This commit is contained in:
parent
4715134fce
commit
768be1d7af
@ -10,6 +10,10 @@ function onGetFormulaValues(player, level, maglevel)
|
|||||||
|
|
||||||
local formula = 3 * maglevel + (2 * level)
|
local formula = 3 * maglevel + (2 * level)
|
||||||
|
|
||||||
|
if formula >= 101 then
|
||||||
|
formula = 100
|
||||||
|
end
|
||||||
|
|
||||||
local min = (formula * (base - variation)) / 100
|
local min = (formula * (base - variation)) / 100
|
||||||
local max = (formula * (base + variation)) / 100
|
local max = (formula * (base + variation)) / 100
|
||||||
return min, max
|
return min, max
|
||||||
|
@ -21,6 +21,9 @@ function onTargetCreature(creature, target)
|
|||||||
|
|
||||||
local value = math.random(-variation, variation) + base
|
local value = math.random(-variation, variation) + base
|
||||||
local formula = 3 * player:getMagicLevel() + (2 * player:getLevel())
|
local formula = 3 * player:getMagicLevel() + (2 * player:getLevel())
|
||||||
|
if formula >= 101 then
|
||||||
|
formula = 100
|
||||||
|
end
|
||||||
local total = formula * value / 100
|
local total = formula * value / 100
|
||||||
|
|
||||||
doTargetCombatHealth(0, target, COMBAT_HEALING, total, total, CONST_ME_NONE)
|
doTargetCombatHealth(0, target, COMBAT_HEALING, total, total, CONST_ME_NONE)
|
||||||
|
@ -3125,7 +3125,7 @@ bool Game::internalCreatureSay(Creature* creature, SpeakClasses type, const std:
|
|||||||
Map::maxClientViewportX, Map::maxClientViewportX,
|
Map::maxClientViewportX, Map::maxClientViewportX,
|
||||||
Map::maxClientViewportY, Map::maxClientViewportY);
|
Map::maxClientViewportY, Map::maxClientViewportY);
|
||||||
} else {
|
} else {
|
||||||
map.getSpectators(list, *pos, true, false, 18, 18, 14, 14);
|
map.getSpectators(list, *pos, true, false, 30, 30, 30, 30);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
list = (*listPtr);
|
list = (*listPtr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user