fix: Updates Mysticism to use circles (#1123)
This commit is contained in:
parent
c5d1927df3
commit
54da2c94a5
11 changed files with 97 additions and 66 deletions
|
|
@ -12,7 +12,6 @@ namespace Server.Spells
|
|||
* Mana requirements formula: (14 * (circle - 1)) + 2 = 50% probability
|
||||
* Add or subtract 20 for max or min limits
|
||||
*/
|
||||
|
||||
private static readonly double[] _requiredSkill = Core.ML ?
|
||||
new[] { -46.0, -32.0, -18.0, -4.0, 10.0, 24.0, 38.0, 52.0, 66.0, 80.0 } :
|
||||
new[] { -50.0, -30.0, 0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0 };
|
||||
|
|
|
|||
|
|
@ -64,11 +64,8 @@ namespace Server.Spells
|
|||
{
|
||||
if (m.Skills[MoveSkill].Value < RequiredSkill)
|
||||
{
|
||||
var args = $"{RequiredSkill:F1}\t{MoveSkill.ToString()}\t ";
|
||||
m.SendLocalizedMessage(
|
||||
1063013,
|
||||
args
|
||||
); // You need at least ~1_SKILL_REQUIREMENT~ ~2_SKILL_NAME~ skill to use that ability.
|
||||
// You need at least ~1_SKILL_REQUIREMENT~ ~2_SKILL_NAME~ skill to use that ability.
|
||||
m.SendLocalizedMessage(1063013, $"{RequiredSkill:F1}\t{MoveSkill}\t ");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -105,10 +102,8 @@ namespace Server.Spells
|
|||
|
||||
if (from.Mana < mana)
|
||||
{
|
||||
from.SendLocalizedMessage(
|
||||
1060181,
|
||||
mana.ToString()
|
||||
); // You need ~1_MANA_REQUIREMENT~ mana to perform that attack
|
||||
// You need ~1_MANA_REQUIREMENT~ mana to perform that attack
|
||||
from.SendLocalizedMessage(1060181, mana.ToString());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue