Addition of CraftingCritical effect handler.
This commit is contained in:
@@ -661,7 +661,11 @@ public class RecipeManager
|
||||
}
|
||||
}
|
||||
|
||||
_target.getInventory().addItem("Manufacture", itemId, itemCount, _target, _player);
|
||||
final Item item = _target.getInventory().addItem("Manufacture", itemId, itemCount, _target, _player);
|
||||
if (item.isEquipable() && (itemCount == 1) && (Rnd.get(100) < _player.getStat().getValue(Stat.CRAFTING_CRITICAL)))
|
||||
{
|
||||
_target.getInventory().addItem("Manufacture Critical", itemId, itemCount, _target, _player);
|
||||
}
|
||||
|
||||
// inform customer of earned item
|
||||
SystemMessage sm = null;
|
||||
|
@@ -289,6 +289,7 @@ public enum Stat
|
||||
// Which base stat ordinal should alter skill critical formula.
|
||||
STAT_BONUS_SKILL_CRITICAL("statSkillCritical"),
|
||||
STAT_BONUS_SPEED("statSpeed"),
|
||||
CRAFTING_CRITICAL("craftingCritical"),
|
||||
SHOTS_BONUS("shotBonus", new ShotsBonusFinalizer()),
|
||||
WORLD_CHAT_POINTS("worldChatPoints"),
|
||||
ATTACK_DAMAGE("attackDamage"),
|
||||
|
Reference in New Issue
Block a user