v0.9.1: added baseline functionality for tier 2 talents.
This commit is contained in:
parent
772da815d6
commit
eda94b1074
Binary file not shown.
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 287 B |
Binary file not shown.
Before Width: | Height: | Size: 868 B After Width: | Height: | Size: 996 B |
|
@ -1,6 +1,7 @@
|
||||||
ui.quickslotbutton.select_item=Quickslot an item
|
ui.quickslotbutton.select_item=Quickslot an item
|
||||||
|
|
||||||
ui.talentspane.tier=tier %d
|
ui.talentspane.tier=tier %d
|
||||||
|
ui.talentspane.unlock_tier2=Reach level 6 to unlock more talents.
|
||||||
ui.talentspane.coming_soon=More talents coming soon!
|
ui.talentspane.coming_soon=More talents coming soon!
|
||||||
|
|
||||||
ui.toolbar.examine_prompt=Press again to search\nPress a tile to examine
|
ui.toolbar.examine_prompt=Press again to search\nPress a tile to examine
|
||||||
|
|
|
@ -53,21 +53,41 @@ public enum Talent {
|
||||||
ARMSMASTERS_INTUITION(1),
|
ARMSMASTERS_INTUITION(1),
|
||||||
TEST_SUBJECT(2),
|
TEST_SUBJECT(2),
|
||||||
IRON_WILL(3),
|
IRON_WILL(3),
|
||||||
|
TEST_WARRIOR_T2_1(4),
|
||||||
|
TEST_WARRIOR_T2_2(5),
|
||||||
|
TEST_WARRIOR_T2_3(6),
|
||||||
|
TEST_WARRIOR_T2_4(7),
|
||||||
|
TEST_WARRIOR_T2_5(8),
|
||||||
|
|
||||||
ENERGIZING_MEAL(4),
|
ENERGIZING_MEAL(16),
|
||||||
SCHOLARS_INTUITION(5),
|
SCHOLARS_INTUITION(17),
|
||||||
TESTED_HYPOTHESIS(6),
|
TESTED_HYPOTHESIS(18),
|
||||||
ENERGIZING_UPGRADE(7),
|
ENERGIZING_UPGRADE(19),
|
||||||
|
TEST_MAGE_T2_1(20),
|
||||||
|
TEST_MAGE_T2_2(21),
|
||||||
|
TEST_MAGE_T2_3(22),
|
||||||
|
TEST_MAGE_T2_4(23),
|
||||||
|
TEST_MAGE_T2_5(24),
|
||||||
|
|
||||||
RATIONED_MEAL(8),
|
RATIONED_MEAL(32),
|
||||||
THIEFS_INTUITION(9),
|
THIEFS_INTUITION(33),
|
||||||
SUCKER_PUNCH(10),
|
SUCKER_PUNCH(34),
|
||||||
MENDING_SHADOWS(11),
|
MENDING_SHADOWS(35),
|
||||||
|
TEST_ROGUE_T2_1(36),
|
||||||
|
TEST_ROGUE_T2_2(37),
|
||||||
|
TEST_ROGUE_T2_3(38),
|
||||||
|
TEST_ROGUE_T2_4(39),
|
||||||
|
TEST_ROGUE_T2_5(40),
|
||||||
|
|
||||||
INVIGORATING_MEAL(12),
|
INVIGORATING_MEAL(48),
|
||||||
SURVIVALISTS_INTUITION(13),
|
SURVIVALISTS_INTUITION(49),
|
||||||
FOLLOWUP_STRIKE(14),
|
FOLLOWUP_STRIKE(50),
|
||||||
NATURES_AID(15);
|
NATURES_AID(51),
|
||||||
|
TEST_HUNTRESS_T2_1(52),
|
||||||
|
TEST_HUNTRESS_T2_2(53),
|
||||||
|
TEST_HUNTRESS_T2_3(54),
|
||||||
|
TEST_HUNTRESS_T2_4(55),
|
||||||
|
TEST_HUNTRESS_T2_5(56);
|
||||||
|
|
||||||
int icon;
|
int icon;
|
||||||
|
|
||||||
|
@ -202,7 +222,7 @@ public enum Talent {
|
||||||
public static class SuckerPunchTracker extends Buff{};
|
public static class SuckerPunchTracker extends Buff{};
|
||||||
public static class FollowupStrikeTracker extends Buff{};
|
public static class FollowupStrikeTracker extends Buff{};
|
||||||
|
|
||||||
public static final int MAX_TALENT_TIERS = 1;
|
public static final int MAX_TALENT_TIERS = 2;
|
||||||
|
|
||||||
public static void initClassTalents( Hero hero ){
|
public static void initClassTalents( Hero hero ){
|
||||||
initClassTalents( hero.heroClass, hero.talents );
|
initClassTalents( hero.heroClass, hero.talents );
|
||||||
|
@ -236,6 +256,27 @@ public enum Talent {
|
||||||
tierTalents.clear();
|
tierTalents.clear();
|
||||||
|
|
||||||
//tier 2+
|
//tier 2+
|
||||||
|
switch (cls){
|
||||||
|
case WARRIOR: default:
|
||||||
|
Collections.addAll(tierTalents, TEST_WARRIOR_T2_1, TEST_WARRIOR_T2_2, TEST_WARRIOR_T2_3, TEST_WARRIOR_T2_4, TEST_WARRIOR_T2_5);
|
||||||
|
break;
|
||||||
|
case MAGE:
|
||||||
|
Collections.addAll(tierTalents, TEST_MAGE_T2_1, TEST_MAGE_T2_2, TEST_MAGE_T2_3, TEST_MAGE_T2_4, TEST_MAGE_T2_5);
|
||||||
|
break;
|
||||||
|
case ROGUE:
|
||||||
|
Collections.addAll(tierTalents, TEST_ROGUE_T2_1, TEST_ROGUE_T2_2, TEST_ROGUE_T2_3, TEST_ROGUE_T2_4, TEST_ROGUE_T2_5);
|
||||||
|
break;
|
||||||
|
case HUNTRESS:
|
||||||
|
Collections.addAll(tierTalents, TEST_HUNTRESS_T2_1, TEST_HUNTRESS_T2_2, TEST_HUNTRESS_T2_3, TEST_HUNTRESS_T2_4, TEST_HUNTRESS_T2_5);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
for (Talent talent : tierTalents){
|
||||||
|
talents.get(1).put(talent, 0);
|
||||||
|
}
|
||||||
|
tierTalents.clear();
|
||||||
|
|
||||||
|
|
||||||
|
//tier 3+
|
||||||
//TBD
|
//TBD
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,11 @@ public class TalentsPane extends ScrollPane {
|
||||||
blocker = new ColorBlock(0, 0, 0xFF222222);
|
blocker = new ColorBlock(0, 0, 0xFF222222);
|
||||||
content.add(blocker);
|
content.add(blocker);
|
||||||
|
|
||||||
blockText = PixelScene.renderTextBlock(Messages.get(this, "coming_soon"), 6);
|
if (tiersAvailable == 1) {
|
||||||
|
blockText = PixelScene.renderTextBlock(Messages.get(this, "unlock_tier2"), 6);
|
||||||
|
} else {
|
||||||
|
blockText = PixelScene.renderTextBlock(Messages.get(this, "coming_soon"), 6);
|
||||||
|
}
|
||||||
content.add(blockText);
|
content.add(blockText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user