Mushroom now at lv 8

This commit is contained in:
julian 2018-07-07 11:17:32 +02:00
parent 1505213417
commit 6c1e780701
4 changed files with 18 additions and 15 deletions

4
.gitignore vendored
View File

@ -6,4 +6,6 @@
.DS_Store .DS_Store
/build /build
/captures /captures
/app/build /app/build
/app/release
*.iml

View File

@ -30,15 +30,15 @@ public enum ToolType {
R.drawable.tools_magnet_button, 22, 2, 5, R.drawable.tools_magnet_button, 22, 2, 5,
new ToolUpgrade(ToolUpgradeType.COOLDOWN, 5000, 3000), new ToolUpgrade(ToolUpgradeType.COOLDOWN, 5000, 3000),
new ToolUpgrade(ToolUpgradeType.FORCE, 100, 500)), new ToolUpgrade(ToolUpgradeType.FORCE, 100, 500)),
POWER_MUSHROOM(R.string.tool_name_power_mushroom, R.string.tool_description_power_mushroom,
R.drawable.tools_power_mushroom, R.drawable.tools_power_mushroom_button, 50,
5, 7, new ToolUpgrade(ToolUpgradeType.COOLDOWN, 15000, 11000),
new ToolUpgrade(ToolUpgradeType.DURATION, 5000, 10000)),
STASIS(R.string.tool_name_stasis, R.string.tool_description_stasis, R.drawable.tools_stasis, STASIS(R.string.tool_name_stasis, R.string.tool_description_stasis, R.drawable.tools_stasis,
R.drawable.tools_stasis_button, 27, 4, 6, R.drawable.tools_stasis_button, 27, 4, 6,
new ToolUpgrade(ToolUpgradeType.COOLDOWN, 6000, 4000), new ToolUpgrade(ToolUpgradeType.COOLDOWN, 6000, 4000),
new ToolUpgrade(ToolUpgradeType.FORCE, 1, 2), new ToolUpgrade(ToolUpgradeType.FORCE, 1, 2),
new ToolUpgrade(ToolUpgradeType.SIZE, 100, 200)); new ToolUpgrade(ToolUpgradeType.SIZE, 100, 200)),
POWER_MUSHROOM(R.string.tool_name_power_mushroom, R.string.tool_description_power_mushroom,
R.drawable.tools_power_mushroom, R.drawable.tools_power_mushroom_button, 50,
5, 7, new ToolUpgrade(ToolUpgradeType.COOLDOWN, 15000, 11000),
new ToolUpgrade(ToolUpgradeType.DURATION, 5000, 10000));
@StringRes @StringRes
private final int name; private final int name;
@ -96,9 +96,10 @@ public enum ToolType {
} }
public static void loadAllToolTextures(TexturePack texturePack) { public static void loadAllToolTextures(TexturePack texturePack) {
for (ToolType type : values()){ for (ToolType type : values()) {
type.loadToolTexture(texturePack); type.loadToolTexture(texturePack);
type.loadToolButtonTexture(texturePack);} type.loadToolButtonTexture(texturePack);
}
} }
private void loadToolTexture(TexturePack texturePack) { private void loadToolTexture(TexturePack texturePack) {
@ -110,7 +111,7 @@ public enum ToolType {
toolTexture = texturePack.loadTexture(toolTextureId); toolTexture = texturePack.loadTexture(toolTextureId);
} }
private void loadToolButtonTexture(TexturePack texturePack){ private void loadToolButtonTexture(TexturePack texturePack) {
if (buttonDrawable == -1) if (buttonDrawable == -1)
return; return;
toolButtonTexture = texturePack.loadTexture(buttonDrawable); toolButtonTexture = texturePack.loadTexture(buttonDrawable);

View File

@ -17,16 +17,16 @@ public class LevelUpBounties extends HashMap<Integer, LevelBounty> {
public LevelUpBounties(int level) { public LevelUpBounties(int level) {
super.put(1, new LevelBounty(0, 0, ToolType.RAMP, true)); super.put(1, new LevelBounty(0, 0, ToolType.RAMP, true));
super.put(2, new LevelBounty(5, 0, ToolType.SPRING, false)); super.put(2, new LevelBounty(5, 0, ToolType.SPRING, false));
super.put(3, new LevelBounty(5, 0, ToolType.POWER_MUSHROOM, true)); super.put(3, new LevelBounty(5, 0, null, true));
super.put(4, new LevelBounty(5, 1, ToolType.BOMB, false)); super.put(4, new LevelBounty(5, 1, ToolType.BOMB, false));
super.put(5, new LevelBounty(5, 1, ToolType.MAGNET, false)); super.put(5, new LevelBounty(5, 1, ToolType.MAGNET, false));
super.put(6, new LevelBounty(5, 2, null, true)); super.put(6, new LevelBounty(5, 2, null, true));
super.put(7, new LevelBounty(5, 1, ToolType.STASIS, false)); super.put(7, new LevelBounty(5, 1, ToolType.STASIS, false));
super.put(8, new LevelBounty(2, 2, null, false)); super.put(8, new LevelBounty(2, 2, ToolType.POWER_MUSHROOM, false));
super.put(9, new LevelBounty(2, 3, null, true)); super.put(9, new LevelBounty(2, 3, null, true));
super.put(10, new LevelBounty(2, 1, null, true)); super.put(10, new LevelBounty(2, 1, null, false));
super.put(11, new LevelBounty(2, 2, null, true)); super.put(11, new LevelBounty(2, 2, null, false));
super.put(12, new LevelBounty(2, 4, null, true)); super.put(12, new LevelBounty(2, 4, null, false));
loadAllForLevel(level); loadAllForLevel(level);
} }

View File

@ -11,7 +11,7 @@
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_margin="10dp" android:layout_margin="10dp"
android:visibility="invisible" android:visibility="visible"
android:src="@drawable/guis_pausebutton"/> android:src="@drawable/guis_pausebutton"/>
<TextView <TextView