Addition of CraftRate effect.

Contributed by quangnguyen.
This commit is contained in:
MobiusDevelopment
2021-02-18 21:26:25 +00:00
parent 241956cb64
commit df35e2cd87
91 changed files with 635 additions and 40 deletions

View File

@@ -403,7 +403,7 @@ public class RecipeController
// handle possible cheaters here
// (they click craft then try to get rid of items in order to get free craft)
}
else if (Rnd.get(100) < _recipeList.getSuccessRate())
else if (Rnd.get(100) < (_recipeList.getSuccessRate() + _player.getStat().getValue(Stat.CRAFT_RATE, 0)))
{
rewardPlayer(); // and immediately puts created item in its place
updateMakeInfo(true);

View File

@@ -291,7 +291,9 @@ public enum Stat
ATTACK_DAMAGE("attackDamage"),
IMMOBILE_DAMAGE_BONUS("immobileBonus"),
IMMOBILE_DAMAGE_RESIST("immobileResist");
IMMOBILE_DAMAGE_RESIST("immobileResist"),
CRAFT_RATE("CraftRate");
public static final int NUM_STATS = values().length;