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

View File

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

View File

@@ -1580,7 +1580,7 @@ public class Formulas
return false; 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) if (val == 0)
{ {
return false; return false;
@@ -1602,7 +1602,7 @@ public class Formulas
break; 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); return (Rnd.get(100) < initVal);
} }

View File

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