v0.7.5e: fixed spreading bug with wand of lightning and re-final commit
This commit is contained in:
parent
774f8db938
commit
4aa6b1788c
|
@ -14,7 +14,7 @@ allprojects {
|
||||||
appName = 'Shattered Pixel Dungeon'
|
appName = 'Shattered Pixel Dungeon'
|
||||||
appPackageName = 'com.shatteredpixel.shatteredpixeldungeon'
|
appPackageName = 'com.shatteredpixel.shatteredpixeldungeon'
|
||||||
|
|
||||||
appVersionCode = 381
|
appVersionCode = 382
|
||||||
appVersionName = '0.7.5e'
|
appVersionName = '0.7.5e'
|
||||||
|
|
||||||
appAndroidCompileSDK = 29
|
appAndroidCompileSDK = 29
|
||||||
|
|
|
@ -92,8 +92,6 @@ public class WandOfLightning extends DamageWand {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void arc( Char ch ) {
|
private void arc( Char ch ) {
|
||||||
|
|
||||||
affected.add( ch );
|
|
||||||
|
|
||||||
int dist = (Dungeon.level.water[ch.pos] && !ch.flying) ? 2 : 1;
|
int dist = (Dungeon.level.water[ch.pos] && !ch.flying) ? 2 : 1;
|
||||||
|
|
||||||
|
@ -128,6 +126,7 @@ public class WandOfLightning extends DamageWand {
|
||||||
|
|
||||||
Char ch = Actor.findChar( cell );
|
Char ch = Actor.findChar( cell );
|
||||||
if (ch != null) {
|
if (ch != null) {
|
||||||
|
affected.add( ch );
|
||||||
arcs.add( new Lightning.Arc(curUser.sprite.center(), ch.sprite.center()));
|
arcs.add( new Lightning.Arc(curUser.sprite.center(), ch.sprite.center()));
|
||||||
arc(ch);
|
arc(ch);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class DesktopLauncher {
|
||||||
try {
|
try {
|
||||||
Game.versionCode = Integer.parseInt(DesktopLauncher.class.getPackage().getImplementationVersion());
|
Game.versionCode = Integer.parseInt(DesktopLauncher.class.getPackage().getImplementationVersion());
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
Game.versionCode = 381;
|
Game.versionCode = 382;
|
||||||
}
|
}
|
||||||
|
|
||||||
new LwjglApplication(new ShatteredPixelDungeon(new DesktopPlatformSupport()), config);
|
new LwjglApplication(new ShatteredPixelDungeon(new DesktopPlatformSupport()), config);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user