v3.2.0: added a thrown weapon to blacksmith's smith options

This commit is contained in:
Evan Debenham
2025-07-26 21:27:58 -04:00
parent dbcdd9e478
commit 60b825a6ef
2 changed files with 7 additions and 4 deletions

View File

@@ -380,6 +380,7 @@ public class Blacksmith extends NPC {
for (Item i : toUndo){
Generator.undoDrop(i);
}
smithRewards.add(Generator.randomMissile(3, useDecks));
smithRewards.add(Generator.randomArmor(3));
//30%:+0, 45%:+1, 20%:+2, 5%:+3

View File

@@ -454,9 +454,9 @@ public class WndBlacksmith extends Window {
public static class WndSmith extends Window {
private static final int WIDTH = 120;
private static final int BTN_SIZE = 32;
private static final int BTN_GAP = 5;
private static final int WIDTH = 128;
private static final int BTN_SIZE = 28;
private static final int BTN_GAP = 4;
private static final int GAP = 2;
public WndSmith( Blacksmith troll, Hero hero ){
@@ -489,7 +489,9 @@ public class WndBlacksmith extends Window {
}
};
btnReward.item( i );
btnReward.setRect( count*(WIDTH - BTN_GAP) / 3 - BTN_SIZE, message.top() + message.height() + BTN_GAP, BTN_SIZE, BTN_SIZE );
btnReward.setRect( count*(WIDTH - BTN_GAP) / Blacksmith.Quest.smithRewards.size() - BTN_SIZE,
message.top() + message.height() + BTN_GAP,
BTN_SIZE, BTN_SIZE );
add( btnReward );
}