Craft Mastery skill (10312).

This commit is contained in:
MobiusDev
2015-09-12 20:33:15 +00:00
parent c6813babe4
commit d620778570
6 changed files with 15 additions and 1 deletions

View File

@@ -254,12 +254,17 @@
<!-- Level 3 : There is a small chance that the item quantity will double upon crafting. Critical level 3. --> <!-- Level 3 : There is a small chance that the item quantity will double upon crafting. Critical level 3. -->
<!-- Level 4 : There is a small chance that the item quantity will double upon crafting. Critical level 4. --> <!-- Level 4 : There is a small chance that the item quantity will double upon crafting. Critical level 4. -->
<skill id="10312" levels="4" name="Crafting Mastery"> <skill id="10312" levels="4" name="Crafting Mastery">
<!-- NOT DONE -->
<table name="#magicLvl"> 85 90 95 99 </table> <table name="#magicLvl"> 85 90 95 99 </table>
<table name="#masteryLvl"> 1 2 3 4 </table>
<set name="icon" val="icon.skill10312" /> <set name="icon" val="icon.skill10312" />
<set name="magicLvl" val="#magicLvl" /> <set name="magicLvl" val="#magicLvl" />
<set name="operateType" val="PASSIVE" /> <set name="operateType" val="PASSIVE" />
<set name="targetType" val="SELF" /> <set name="targetType" val="SELF" />
<for>
<effect name="Buff">
<add stat="craftMastery" val="#masteryLvl"/>
</effect>
</for>
</skill> </skill>
<skill id="10313" levels="4" name="Infinite Rush"> <skill id="10313" levels="4" name="Infinite Rush">
<table name="#mpConsumes"> 92 98 104 110 </table> <table name="#mpConsumes"> 92 98 104 110 </table>

Binary file not shown.

View File

@@ -407,6 +407,7 @@
<xs:enumeration value="hpRestoreOnKill" /> <xs:enumeration value="hpRestoreOnKill" />
<xs:enumeration value="momentumSkillPower" /> <xs:enumeration value="momentumSkillPower" />
<xs:enumeration value="maxPhysCritRate" /> <xs:enumeration value="maxPhysCritRate" />
<xs:enumeration value="craftMastery" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:complexType name="addType" mixed="true"> <xs:complexType name="addType" mixed="true">

View File

@@ -407,6 +407,7 @@
<xs:enumeration value="hpRestoreOnKill" /> <xs:enumeration value="hpRestoreOnKill" />
<xs:enumeration value="momentumSkillPower" /> <xs:enumeration value="momentumSkillPower" />
<xs:enumeration value="maxPhysCritRate" /> <xs:enumeration value="maxPhysCritRate" />
<xs:enumeration value="craftMastery" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:complexType name="addType" mixed="true"> <xs:complexType name="addType" mixed="true">

View File

@@ -675,6 +675,12 @@ public class RecipeController
{ {
itemId = rareProdId; itemId = rareProdId;
itemCount = _recipeList.getRareCount(); itemCount = _recipeList.getRareCount();
final int craftMastery = (int) _player.calcStat(Stats.CRAFT_MASTERY, 0, null, null);
if ((craftMastery > 0) && (Rnd.get(10) < craftMastery))
{
itemCount <<= 1;
}
} }
} }

View File

@@ -189,6 +189,7 @@ public enum Stats
// Skill mastery // Skill mastery
SKILL_CRITICAL("skillCritical"), SKILL_CRITICAL("skillCritical"),
SKILL_CRITICAL_PROBABILITY("skillCriticalProbability"), SKILL_CRITICAL_PROBABILITY("skillCriticalProbability"),
CRAFT_MASTERY("craftMastery"),
// Vitality // Vitality
VITALITY_CONSUME_RATE("vitalityConsumeRate"), VITALITY_CONSUME_RATE("vitalityConsumeRate"),