Skip to content

Commit

Permalink
0.9.6-test35
Browse files Browse the repository at this point in the history
as name
  • Loading branch information
hmdzl001 committed Oct 31, 2021
1 parent 8b47d7c commit a4c7794
Show file tree
Hide file tree
Showing 1,006 changed files with 12,213 additions and 16,274 deletions.
Binary file added assets/ascetic.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/avatars.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bluedragon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/buffs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bugdragon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/follower.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/golddragon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/greendragon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icebug.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/items.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/large_buffs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/lightdragon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/mage.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file removed assets/newmech.png
Binary file not shown.
Binary file removed assets/oldpetreddragon.png
Binary file not shown.
Binary file modified assets/performer.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/petreddragon.png
Binary file not shown.
Binary file modified assets/ranger.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/reddragon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/rogue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/shadowdragon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/soldier.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/tiles0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/tiles1.png
Binary file modified assets/tiles2.png
Binary file modified assets/tiles3.png
Binary file modified assets/tiles4.png
Binary file modified assets/tiles_town.png
Binary file added assets/violetdragon.png
Binary file modified assets/warrior.png
15 changes: 13 additions & 2 deletions java/com/hmdzl/spspd/Assets.java
Expand Up @@ -367,11 +367,22 @@ public class Assets {

public static final String ATV9 = "atv9.png";

public static final String NEW_DARGON_01 = "newdargon01.png";
public static final String NEW_DARGON_02 = "newdargon02.png";
public static final String NEW_DRAGON_01 = "newdragon01.png";
public static final String NEW_DRAGON_02 = "newdragon02.png";

public static final String PIG_PET = "pig.png";
public static final String DATURA = "datura.png";

public static final String REDDRAGON = "reddragon.png";
public static final String BLUEDRAGON = "bluedragon.png";
public static final String GREENDRAGON = "greendragon.png";
public static final String VIOLETDRAGON = "violetdragon.png";
public static final String SHADOWDRAGON = "shadowdragon.png";
public static final String LIGHTDRAGON = "lightdragon.png";
public static final String GOLDDRAGON = "golddragon.png";
public static final String BUGDRAGON = "bugdragon.png";

public static final String ICEBUG = "icebug.png";

}

4 changes: 2 additions & 2 deletions java/com/hmdzl/spspd/Badges.java
Expand Up @@ -46,7 +46,7 @@
import com.watabou.noosa.Game;
import com.watabou.utils.Bundle;
import com.watabou.utils.Callback;
import com.hmdzl.spspd.messages.Messages;
import com.hmdzl.spspd.messages.Messages;import com.hmdzl.spspd.ResultDescriptions;

public class Badges {

Expand Down Expand Up @@ -127,7 +127,7 @@ RARE_ALBINO, RARE_BANDIT, RARE_SHIELDED, RARE_SENIOR, RARE_ACIDIC, RARE(37, true

public int image;

private Badge(int image) {
Badge(int image) {
this(image, false);
}

Expand Down
4 changes: 2 additions & 2 deletions java/com/hmdzl/spspd/Chrome.java
Expand Up @@ -23,9 +23,9 @@ public class Chrome {

public enum Type {
TOAST, TOAST_TR, WINDOW, BUTTON, TAG, GEM, SCROLL, TAB_SET, TAB_SELECTED, TAB_UNSELECTED
};
}

public static NinePatch get(Type type) {
public static NinePatch get(Type type) {
String Asset = Assets.CHROME;
switch (type) {
case WINDOW:
Expand Down
97 changes: 41 additions & 56 deletions java/com/hmdzl/spspd/Dungeon.java
Expand Up @@ -17,27 +17,13 @@
*/
package com.hmdzl.spspd;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.HashSet;

import com.hmdzl.spspd.actors.buffs.actbuff.NmImbue;
import com.hmdzl.spspd.items.artifacts.DriedRose;
import com.hmdzl.spspd.levels.ChaosLevel;
import com.hmdzl.spspd.levels.PotLevel;
import com.hmdzl.spspd.levels.ShadowEaterLevel;
import com.hmdzl.spspd.levels.SokobanSPLevel;
import com.hmdzl.spspd.messages.Messages;
import com.hmdzl.spspd.actors.Actor;
import com.hmdzl.spspd.actors.Char;
import com.hmdzl.spspd.actors.buffs.Amok;
import com.hmdzl.spspd.actors.buffs.Buff;
import com.hmdzl.spspd.actors.buffs.Dewcharge;
import com.hmdzl.spspd.actors.buffs.Light;
import com.hmdzl.spspd.actors.buffs.actbuff.NmImbue;
import com.hmdzl.spspd.actors.hero.Hero;
import com.hmdzl.spspd.actors.hero.HeroClass;
import com.hmdzl.spspd.actors.mobs.npcs.Blacksmith;
Expand All @@ -47,53 +33,57 @@
import com.hmdzl.spspd.items.Ankh;
import com.hmdzl.spspd.items.Generator;
import com.hmdzl.spspd.items.Item;
import com.hmdzl.spspd.items.artifacts.DriedRose;
import com.hmdzl.spspd.items.potions.Potion;
import com.hmdzl.spspd.items.rings.Ring;
import com.hmdzl.spspd.items.scrolls.Scroll;
import com.hmdzl.spspd.levels.BattleLevel;
import com.hmdzl.spspd.levels.BossRushLevel;
import com.hmdzl.spspd.levels.CatacombLevel;
import com.hmdzl.spspd.levels.CavesBossLevel;
import com.hmdzl.spspd.levels.CavesLevel;
import com.hmdzl.spspd.levels.ChaosLevel;
import com.hmdzl.spspd.levels.ChasmLevel;
import com.hmdzl.spspd.levels.CityBossLevel;
import com.hmdzl.spspd.levels.CityLevel;
import com.hmdzl.spspd.levels.CrabBossLevel;
import com.hmdzl.spspd.levels.DeadEndLevel;
import com.hmdzl.spspd.levels.FieldLevel;
import com.hmdzl.spspd.levels.FieldBossLevel;
import com.hmdzl.spspd.levels.FieldLevel;
import com.hmdzl.spspd.levels.FishingLevel;
import com.hmdzl.spspd.levels.FortressLevel;
import com.hmdzl.spspd.levels.HallsBossLevel;
import com.hmdzl.spspd.levels.HallsLevel;
import com.hmdzl.spspd.levels.InfestBossLevel;
import com.hmdzl.spspd.levels.LastLevel;
import com.hmdzl.spspd.levels.LastShopLevel;
import com.hmdzl.spspd.levels.Level;
import com.hmdzl.spspd.levels.MinesBossLevel;
import com.hmdzl.spspd.levels.PotLevel;
import com.hmdzl.spspd.levels.PrisonBossLevel;
import com.hmdzl.spspd.levels.PrisonLevel;
import com.hmdzl.spspd.levels.Room;
import com.hmdzl.spspd.levels.SafeLevel;
import com.hmdzl.spspd.levels.SewerBossLevel;
import com.hmdzl.spspd.levels.SewerLevel;
import com.hmdzl.spspd.levels.ShadowEaterLevel;
import com.hmdzl.spspd.levels.SkeletonBossLevel;
import com.hmdzl.spspd.levels.SokobanCastle;
import com.hmdzl.spspd.levels.SokobanIntroLevel;
import com.hmdzl.spspd.levels.SokobanPuzzlesLevel;
import com.hmdzl.spspd.levels.SokobanSPLevel;
import com.hmdzl.spspd.levels.SokobanTeleportLevel;
import com.hmdzl.spspd.levels.TenguDenLevel;
import com.hmdzl.spspd.levels.ThiefBossLevel;
import com.hmdzl.spspd.levels.ThiefCatchLevel;
import com.hmdzl.spspd.levels.BossRushLevel;
import com.hmdzl.spspd.levels.TownLevel;
import com.hmdzl.spspd.levels.VaultLevel;
import com.hmdzl.spspd.levels.ZotBossLevel;
import com.hmdzl.spspd.messages.Messages;import com.hmdzl.spspd.ResultDescriptions;
import com.hmdzl.spspd.scenes.GameScene;
import com.hmdzl.spspd.scenes.StartScene;
import com.hmdzl.spspd.ui.QuickSlotButton;
import com.hmdzl.spspd.utils.BArray;
import com.hmdzl.spspd.utils.GLog;

import com.hmdzl.spspd.windows.WndResurrect;
import com.watabou.noosa.Game;
import com.watabou.utils.Bundlable;
Expand All @@ -102,12 +92,20 @@
import com.watabou.utils.Random;
import com.watabou.utils.SparseArray;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.HashSet;

public class Dungeon {

// enum of items which have limited spawns, records how many have spawned
// could all be their own separate numbers, but this allows iterating, much
// nicer for bundling/initializing.
public static enum limitedDrops {
public enum limitedDrops {
// limited world drops
strengthPotions,

Expand Down Expand Up @@ -700,7 +698,7 @@ public static Level newJournalLevel(int page, Boolean first){
level = Dungeon.newLevel();
}

level.first = first;
Level.first = first;
level.create();

Statistics.qualifiedForNoKilling = !bossLevel();
Expand Down Expand Up @@ -774,7 +772,7 @@ public static Level newChallengeLevel(int list, Boolean first){
level = Dungeon.newLevel();
}

level.first = first;
Level.first = first;
level.create();

Statistics.qualifiedForNoKilling = !bossLevel();
Expand All @@ -795,18 +793,7 @@ public static Level newLevel() {
if (depth > Statistics.deepestFloor && depth < 27) {
Statistics.deepestFloor = depth;

if (Statistics.qualifiedForNoKilling) {
Statistics.completedWithNoKilling = true;
} else {
Statistics.completedWithNoKilling = false;
}
}

if (depth==6){
Statistics.sewerKills=Statistics.enemiesSlain;
}
if (depth==10){
Statistics.prisonKills=Statistics.enemiesSlain-Statistics.sewerKills;
Statistics.completedWithNoKilling = Statistics.qualifiedForNoKilling;
}

Arrays.fill(visible, false);
Expand All @@ -816,28 +803,28 @@ public static Level newLevel() {
case 1:
//level = new PrisonBossLevel();
//level = new SewerLevel();
//hero.HT=999;
//hero.HP=hero.HT;
//hero.TRUE_HT=999;
//hero.HP=hero.TRUE_HT;
//break;
case 2:
//level = new HallsLevel();
//hero.HT=999;
//hero.HP=hero.HT;
//hero.TRUE_HT=999;
//hero.HP=hero.TRUE_HT;
//break;
case 3:
case 4:
//level = new CavesLevel();
level = new SewerLevel();
//hero.HT=999;
//hero.HP=hero.HT;
//hero.TRUE_HT=999;
//hero.HP=hero.TRUE_HT;
break;
case 5:
level = new SewerBossLevel();
break;
case 6:
//level = new HallsLevel();
//hero.HT=999;
//hero.HP=hero.HT;
//hero.TRUE_HT=999;
//hero.HP=hero.TRUE_HT;
//break;
case 7:
case 8:
Expand Down Expand Up @@ -898,16 +885,15 @@ public static Level newLevel() {
level.create();

Statistics.qualifiedForNoKilling = !bossLevel();
if (depth<26 && !Dungeon.bossLevel(depth) && (Dungeon.dewDraw || Dungeon.dewWater)){
Buff.prolong(Dungeon.hero, Dewcharge.class, Dewcharge.DURATION+(Math.max(Statistics.prevfloormoves,1)));
if (depth<25 && !Dungeon.bossLevel(depth) && (Dungeon.dewDraw || Dungeon.dewWater)){
Buff.affect(Dungeon.hero, Dewcharge.class).level( (int)(Dewcharge.DURATION+(Math.max(Statistics.prevfloormoves,1))) );
//GLog.p("You feel the dungeon charge with dew!");
}
NmImbue nm = Dungeon.hero.buff(NmImbue.class);
if (Dungeon.hero.heroClass == HeroClass.SOLDIER && Dungeon.skins == 4 && nm == null ){
if (Dungeon.hero.heroClass == HeroClass.SOLDIER && Dungeon.skins == 4 && nm == null ){

Buff.affect(Dungeon.hero,NmImbue.class);
}

}
/*if(Dungeon.hero.heroClass == HeroClass.PERFORMER){
//Buff.prolong(Dungeon.hero,Rhythm.class,50);
Buff.affect(Dungeon.hero,GlassShield.class).turns(3);
Expand Down Expand Up @@ -944,7 +930,7 @@ public static boolean bossLevel(int depth) {
}

public static boolean notClearableLevel(int depth) {
return depth == 1 || depth ==2 ||depth == 5 || depth == 10 || depth == 15 || depth == 20
return depth == 1 ||depth == 5 || depth == 10 || depth == 15 || depth == 20
|| depth == 25 || depth>25;
}

Expand All @@ -963,7 +949,7 @@ public static boolean waterLevel(int depth) {
public static boolean sokobanLevel(int depth) {
return depth == 51 || depth == 52 || depth == 53 || depth == 54;
}

//public static boolean dropLevel(int depth) {
//return depth == 40;
//}
Expand All @@ -973,7 +959,7 @@ public static boolean sokobanLevel(int depth) {
public static void switchLevel(final Level level, int pos) {

Dungeon.level = level;
DriedRose.restoreGhostHero( level, pos );
//DriedRose.restoreGhostHero( level, pos );
Actor.init();

Actor respawner = level.respawner();
Expand Down Expand Up @@ -1157,7 +1143,7 @@ private static String depthFile(HeroClass cl) {
}
}

public static void saveGame(String fileName) throws IOException {
public static void saveGame(String fileName) {
try {
Bundle bundle = new Bundle();

Expand Down Expand Up @@ -1280,16 +1266,15 @@ public static void saveAll() throws IOException {
}
}

public static void loadGame(HeroClass cl) throws IOException {
public static void loadGame(HeroClass cl) {
loadGame(gameFile(cl), true);
}

public static void loadGame(String fileName) throws IOException {
public static void loadGame(String fileName) {
loadGame(fileName, false);
}

public static void loadGame(String fileName, boolean fullLoad)
throws IOException {
public static void loadGame(String fileName, boolean fullLoad) {
try{
Bundle bundle = gameBundle(fileName);

Expand Down Expand Up @@ -1462,7 +1447,7 @@ public static void preview(GamesInProgress.Info info, Bundle bundle) {
Hero.preview(info, bundle.getBundle(HERO));
}

public static void fail( String desc ) {
public static void fail(String desc) {
resultDescription = desc;
if (hero.belongings.getItem(Ankh.class) == null) {
Rankings.INSTANCE.submit(false);
Expand Down
8 changes: 4 additions & 4 deletions java/com/hmdzl/spspd/DungeonTilemap.java
Expand Up @@ -67,8 +67,8 @@ public void discover(int pos, int oldValue) {
protected void onComplete() {
tile.killAndErase();
killAndErase();
};
});
}
});
}

public static PointF tileToWorld(int pos) {
Expand All @@ -88,8 +88,8 @@ public static Image tile(int index) {

public static PointF raisedTileCenterToWorld( int pos ) {
return new PointF(
(pos % Dungeon.level.WIDTH + 0.5f) * SIZE,
(pos / Dungeon.level.WIDTH + 0.1f) * SIZE );
(pos % Level.WIDTH + 0.5f) * SIZE,
(pos / Level.WIDTH + 0.1f) * SIZE );
}

@Override
Expand Down
6 changes: 3 additions & 3 deletions java/com/hmdzl/spspd/Journal.java
Expand Up @@ -19,7 +19,7 @@

import java.util.ArrayList;

import com.hmdzl.spspd.messages.Messages;
import com.hmdzl.spspd.messages.Messages;import com.hmdzl.spspd.ResultDescriptions;
import com.watabou.utils.Bundlable;
import com.watabou.utils.Bundle;

Expand All @@ -43,9 +43,9 @@ public enum Feature {
public String desc() {
return Messages.get(this, name());
}
};
}

public static class Record implements Comparable<Record>, Bundlable {
public static class Record implements Comparable<Record>, Bundlable {

private static final String FEATURE = "feature";
private static final String DEPTH = "depth";
Expand Down

0 comments on commit a4c7794

Please sign in to comment.