Converted back to gradle maybe or something, cleared out old in progress code from item bonuses, giving up on unique skill bonuses, will likely just use skillid to check if its like religion or fighting and not bonus those
This commit is contained in:
@@ -119,8 +119,8 @@ public class PlayerBounty {
|
||||
try {
|
||||
double fightskill = player.getFightingSkill().getKnowledge();
|
||||
int quality = random.nextInt((int)fightskill);
|
||||
Item crystal = ItemFactory.createItem(TreasureBox.templateId, quality, (random.nextInt((int)fightskill) < 20 ? (byte)0:(byte)1), "");
|
||||
player.getInventory().insertItem(crystal);
|
||||
Item treasure = ItemFactory.createItem(TreasureBox.templateId, quality, "");
|
||||
player.getInventory().insertItem(treasure);
|
||||
player.getCommunicator().sendNormalServerMessage("You find something in your inventory!");
|
||||
} catch (FailedException | NoSuchTemplateException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user