v0.8.1: Fixed the following bugs:
- Memory leaks and other errors when using split-screen on Android - Tengu cleansing doomed debuff between first and second phase - Equip drops from enemies not graduating in rarity as intended - Gasses being examinable when not visible
This commit is contained in:
parent
804a6a88a9
commit
5594172a41
|
@ -22,6 +22,7 @@
|
||||||
android:label="${appName}"
|
android:label="${appName}"
|
||||||
android:theme="@android:style/Theme.Black.NoTitleBar"
|
android:theme="@android:style/Theme.Black.NoTitleBar"
|
||||||
android:resizeableActivity="true"
|
android:resizeableActivity="true"
|
||||||
|
android:launchMode="singleInstance"
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:fullBackupOnly="true"
|
android:fullBackupOnly="true"
|
||||||
android:backupAgent=".AndroidBackupHandler">
|
android:backupAgent=".AndroidBackupHandler">
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class AndroidGame extends AndroidApplication {
|
||||||
public static AndroidApplication instance;
|
public static AndroidApplication instance;
|
||||||
protected static GLSurfaceView view;
|
protected static GLSurfaceView view;
|
||||||
|
|
||||||
private AndroidPlatformSupport support;
|
private static AndroidPlatformSupport support;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate (Bundle savedInstanceState) {
|
protected void onCreate (Bundle savedInstanceState) {
|
||||||
|
@ -92,7 +92,8 @@ public class AndroidGame extends AndroidApplication {
|
||||||
config.useCompass = false;
|
config.useCompass = false;
|
||||||
config.useAccelerometer = false;
|
config.useAccelerometer = false;
|
||||||
|
|
||||||
support = new AndroidPlatformSupport();
|
if (support == null) support = new AndroidPlatformSupport();
|
||||||
|
else support.resetGenerators();
|
||||||
|
|
||||||
support.updateSystemUI();
|
support.updateSystemUI();
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,7 @@ public class DM200 extends Mob {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Item createLoot() {
|
protected Item createLoot() {
|
||||||
|
Dungeon.LimitedDrops.DM200_EQUIP.count++;
|
||||||
//uses probability tables for dwarf city
|
//uses probability tables for dwarf city
|
||||||
if (loot == Generator.Category.WEAPON){
|
if (loot == Generator.Category.WEAPON){
|
||||||
return Generator.randomWeapon(4);
|
return Generator.randomWeapon(4);
|
||||||
|
|
|
@ -82,6 +82,7 @@ public class Golem extends Mob {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Item createLoot() {
|
protected Item createLoot() {
|
||||||
|
Dungeon.LimitedDrops.GOLEM_EQUIP.count++;
|
||||||
//uses probability tables for demon halls
|
//uses probability tables for demon halls
|
||||||
if (loot == Generator.Category.WEAPON){
|
if (loot == Generator.Category.WEAPON){
|
||||||
return Generator.randomWeapon(5);
|
return Generator.randomWeapon(5);
|
||||||
|
|
|
@ -135,6 +135,12 @@ public class Guard extends Mob {
|
||||||
super.rollToDropLoot();
|
super.rollToDropLoot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Item createLoot() {
|
||||||
|
Dungeon.LimitedDrops.GUARD_ARM.count++;
|
||||||
|
return super.createLoot();
|
||||||
|
}
|
||||||
|
|
||||||
private final String CHAINSUSED = "chainsused";
|
private final String CHAINSUSED = "chainsused";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -32,6 +32,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Fire;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Blindness;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Blindness;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Burning;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Burning;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Doom;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.LockedFloor;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.LockedFloor;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Terror;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Terror;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||||
|
@ -121,7 +122,7 @@ public class NewTengu extends Mob {
|
||||||
//Tengu is immune to debuffs and damage when removed from the level
|
//Tengu is immune to debuffs and damage when removed from the level
|
||||||
@Override
|
@Override
|
||||||
public void add(Buff buff) {
|
public void add(Buff buff) {
|
||||||
if (Actor.chars().contains(this)){
|
if (Actor.chars().contains(this) || buff instanceof Doom){
|
||||||
super.add(buff);
|
super.add(buff);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,7 +95,13 @@ public class Skeleton extends Mob {
|
||||||
lootChance *= Math.pow(1/2f, Dungeon.LimitedDrops.SKELE_WEP.count);
|
lootChance *= Math.pow(1/2f, Dungeon.LimitedDrops.SKELE_WEP.count);
|
||||||
super.rollToDropLoot();
|
super.rollToDropLoot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Item createLoot() {
|
||||||
|
Dungeon.LimitedDrops.SKELE_WEP.count++;
|
||||||
|
return super.createLoot();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int attackSkill( Char target ) {
|
public int attackSkill( Char target ) {
|
||||||
return 12;
|
return 12;
|
||||||
|
|
|
@ -29,6 +29,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Regrowth;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Regrowth;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.StormCloud;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.StormCloud;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Doom;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.NewTengu;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.NewTengu;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.effects.CellEmitter;
|
import com.shatteredpixel.shatteredpixeldungeon.effects.CellEmitter;
|
||||||
|
@ -397,11 +398,13 @@ public class NewPrisonBossLevel extends Level {
|
||||||
|
|
||||||
setMapPause();
|
setMapPause();
|
||||||
cleanMapState();
|
cleanMapState();
|
||||||
|
|
||||||
|
Doom d = tengu.buff(Doom.class);
|
||||||
Actor.remove(tengu);
|
Actor.remove(tengu);
|
||||||
mobs.remove(tengu);
|
mobs.remove(tengu);
|
||||||
TargetHealthIndicator.instance.target(null);
|
TargetHealthIndicator.instance.target(null);
|
||||||
tengu.sprite.kill();
|
tengu.sprite.kill();
|
||||||
|
if (d != null) tengu.add(d);
|
||||||
|
|
||||||
GameScene.flash(0xFFFFFF);
|
GameScene.flash(0xFFFFFF);
|
||||||
Sample.INSTANCE.play(Assets.Sounds.BLAST);
|
Sample.INSTANCE.play(Assets.Sounds.BLAST);
|
||||||
|
|
|
@ -106,12 +106,14 @@ public class WndInfoCell extends Window {
|
||||||
RenderedTextBlock info = PixelScene.renderTextBlock(6);
|
RenderedTextBlock info = PixelScene.renderTextBlock(6);
|
||||||
add(info);
|
add(info);
|
||||||
|
|
||||||
for (Blob blob:Dungeon.level.blobs.values()) {
|
if (Dungeon.level.heroFOV[cell]) {
|
||||||
if (blob.volume > 0 && blob.cur[cell] > 0 && blob.tileDesc() != null) {
|
for (Blob blob : Dungeon.level.blobs.values()) {
|
||||||
if (desc.length() > 0) {
|
if (blob.volume > 0 && blob.cur[cell] > 0 && blob.tileDesc() != null) {
|
||||||
desc += "\n\n";
|
if (desc.length() > 0) {
|
||||||
|
desc += "\n\n";
|
||||||
|
}
|
||||||
|
desc += blob.tileDesc();
|
||||||
}
|
}
|
||||||
desc += blob.tileDesc();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user