From 5b9b106ab72da4be74531e2b8601da51ad0c1699 Mon Sep 17 00:00:00 2001 From: Trashbox Bobylev Date: Tue, 12 Apr 2022 03:33:14 +0300 Subject: [PATCH] 1.0.6: finale --- build.gradle | 4 ++-- .../actors/hero/Hero.java | 2 +- .../shatteredpixeldungeon/levels/Level.java | 2 +- .../levels/RegularLevel.java | 4 ++-- .../ui/changelist/v1_X_Changes.java | 19 +++++++++++++++++-- 5 files changed, 23 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 4f3e997df..973df0042 100644 --- a/build.gradle +++ b/build.gradle @@ -14,8 +14,8 @@ allprojects { appName = 'Shorter Pixel Dungeon' appPackageName = 'com.trashboxbobylev.shorterpd' - appVersionCode = 579 - appVersionName = 'Short-1.0.5' + appVersionCode = 622 + appVersionName = 'Short-1.0.6' appJavaCompatibility = JavaVersion.VERSION_1_8 diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index 4fc8c17fc..973cac052 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -1603,7 +1603,7 @@ public int maxExp() { } public static int maxExp( int lvl ){ - return 3 + lvl * 3; + return Math.round((3 + lvl * 3) * 0.75f); } public boolean isStarving() { diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java index 00f6cc920..0488008a9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -114,7 +114,7 @@ public static enum Feeling { protected int height; protected int length; - protected static final float TIME_TO_RESPAWN = 50; + protected static final float TIME_TO_RESPAWN = 80; public int version; diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/RegularLevel.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/RegularLevel.java index d9ed7a2f3..d0ecbed64 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/RegularLevel.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/RegularLevel.java @@ -178,7 +178,7 @@ protected float[] trapChances() { public int mobLimit() { if (Dungeon.depth <= 1) return 0; - int mobs = 1 + Dungeon.depth % 4 + Random.Int(1); + int mobs = 1 + Dungeon.depth % 4; if (feeling == Feeling.LARGE){ mobs = (int)Math.ceil(mobs * 1.33f); } @@ -312,7 +312,7 @@ public int randomDestination( Char ch ) { protected void createItems() { // drops 3/4/5 items 50%/40%/10% of the time - int nItems = 3 + Random.chances(new float[]{5, 4, 1}); + int nItems = 2 + Random.chances(new float[]{5, 4, 1}); if (feeling == Feeling.LARGE){ nItems += 2; diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/v1_X_Changes.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/v1_X_Changes.java index 2170b835c..77dca1451 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/v1_X_Changes.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/v1_X_Changes.java @@ -17,11 +17,26 @@ public class v1_X_Changes { public static void addAllChanges( ArrayList changeInfos ){ - ChangeInfo changes = new ChangeInfo("Short-1.0.5", true, ""); + ChangeInfo changes = new ChangeInfo("Short-1.0.6", true, ""); changes.hardlight(0xCCCCCC); changeInfos.add(changes); changes.addButton( new ChangeButton(Icons.get(Icons.SHORTER_CHEST), "Developer Commentary", - "_-_ Released January 21th, 2021")); + "_-_ Released April 12th, 2022")); + changes.addButton(new ChangeButton(Icons.get(Icons.SHPX), "ShatteredPD", + "_-_ Ported everything from Shattered 1.2.2.")); + changes.addButton(new ChangeButton(new ItemSprite(new Sword()), "Equipment", + "_-_ Reduced weapon damage again.\n" + + "_-_ Reduced amount of XP required to level up.\n" + + "_-_ Reduced amount of items spawning on level.")); + changes.addButton(new ChangeButton(new RatSprite(), "Mobs", + "_-_ Reduced HP numbers.\n" + + "_-_ Increased respawning cooldown from 50 to 80.")); + + changes = new ChangeInfo("Short-1.0.5", true, ""); + changes.hardlight(0xCCCCCC); + changeInfos.add(changes); + changes.addButton( new ChangeButton(Icons.get(Icons.SHORTER_CHEST), "Developer Commentary", + "_-_ Released January 21th, 2022")); changes.addButton(new ChangeButton(Icons.get(Icons.SHPX), "ShatteredPD", "_-_ Fixed laboratory rooms not appearing.\n\n" + "_-_ Fixed debug thing on Dwarf King.\n\n" +