v3.2.0: added a thrown weapon to blacksmith's smith options
This commit is contained in:
@@ -380,6 +380,7 @@ public class Blacksmith extends NPC {
|
|||||||
for (Item i : toUndo){
|
for (Item i : toUndo){
|
||||||
Generator.undoDrop(i);
|
Generator.undoDrop(i);
|
||||||
}
|
}
|
||||||
|
smithRewards.add(Generator.randomMissile(3, useDecks));
|
||||||
smithRewards.add(Generator.randomArmor(3));
|
smithRewards.add(Generator.randomArmor(3));
|
||||||
|
|
||||||
//30%:+0, 45%:+1, 20%:+2, 5%:+3
|
//30%:+0, 45%:+1, 20%:+2, 5%:+3
|
||||||
|
|||||||
@@ -454,9 +454,9 @@ public class WndBlacksmith extends Window {
|
|||||||
|
|
||||||
public static class WndSmith extends Window {
|
public static class WndSmith extends Window {
|
||||||
|
|
||||||
private static final int WIDTH = 120;
|
private static final int WIDTH = 128;
|
||||||
private static final int BTN_SIZE = 32;
|
private static final int BTN_SIZE = 28;
|
||||||
private static final int BTN_GAP = 5;
|
private static final int BTN_GAP = 4;
|
||||||
private static final int GAP = 2;
|
private static final int GAP = 2;
|
||||||
|
|
||||||
public WndSmith( Blacksmith troll, Hero hero ){
|
public WndSmith( Blacksmith troll, Hero hero ){
|
||||||
@@ -489,7 +489,9 @@ public class WndBlacksmith extends Window {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
btnReward.item( i );
|
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 );
|
add( btnReward );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user