Skip to content

Commit

Permalink
1.0.6: finale
Browse files Browse the repository at this point in the history
  • Loading branch information
TrashboxBobylev committed Apr 12, 2022
1 parent f4e209d commit 5b9b106
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,26 @@
public class v1_X_Changes {

public static void addAllChanges( ArrayList<ChangeInfo> 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" +
Expand Down

0 comments on commit 5b9b106

Please sign in to comment.