Proper naming for skill mastery related effects.

This commit is contained in:
MobiusDevelopment
2021-04-30 12:24:48 +00:00
parent 88cfda013d
commit def6882893
4 changed files with 9 additions and 9 deletions

View File

@@ -1050,7 +1050,7 @@
<set name="targetType" val="SELF" />
<for>
<effect name="Buff">
<add stat="skillCritical" val="1" /> <!-- STR -->
<add stat="skillMastery" val="1" /> <!-- STR -->
</effect>
</for>
</skill>
@@ -1062,7 +1062,7 @@
<set name="targetType" val="SELF" />
<for>
<effect name="Buff">
<add stat="skillCritical" val="4" /> <!-- INT -->
<add stat="skillMastery" val="4" /> <!-- INT -->
</effect>
</for>
</skill>
@@ -1102,7 +1102,7 @@
<for>
<effect name="MpConsumePerLevel" ticks="5">
<param power="2" />
<mul stat="skillCriticalProbability" val="11" />
<mul stat="skillMasteryRate" val="11" />
</effect>
</for>
</skill>

View File

@@ -433,8 +433,8 @@
<xs:enumeration value="shieldDefAngle" />
<xs:enumeration value="reflectSkillMagic" />
<xs:enumeration value="reflectSkillPhysic" />
<xs:enumeration value="skillCritical" />
<xs:enumeration value="skillCriticalProbability" />
<xs:enumeration value="skillMastery" />
<xs:enumeration value="skillMasteryRate" />
<xs:enumeration value="privateBuyLimit" />
<xs:enumeration value="privateSellLimit" />
<xs:enumeration value="inventoryLimit" />

View File

@@ -1580,7 +1580,7 @@ public class Formulas
return false;
}
final int val = (int) actor.getStat().calcStat(Stat.SKILL_CRITICAL, 0, null, null);
final int val = (int) actor.getStat().calcStat(Stat.SKILL_MASTERY, 0, null, null);
if (val == 0)
{
return false;
@@ -1602,7 +1602,7 @@ public class Formulas
break;
}
}
initVal *= actor.getStat().calcStat(Stat.SKILL_CRITICAL_PROBABILITY, 1, null, null);
initVal *= actor.getStat().calcStat(Stat.SKILL_MASTERY_RATE, 1, null, null);
return (Rnd.get(100) < initVal);
}

View File

@@ -175,8 +175,8 @@ public enum Stat
SHIELD_DEFENCE_ANGLE("shieldDefAngle"),
// Skill mastery
SKILL_CRITICAL("skillCritical"),
SKILL_CRITICAL_PROBABILITY("skillCriticalProbability"),
SKILL_MASTERY("skillMastery"),
SKILL_MASTERY_RATE("skillMasteryRate"),
// Vitality
VITALITY_CONSUME_RATE("vitalityConsumeRate"),