v0.8.0: various bugfixes and small tweaks:

- fixed mobs sometimes not walking onto traps/chasms when they're flying"
- fixed minor visual bugs with items dropping in rare cases
- fixed target quickslot target indicator not following enemies
- "hide navigation bar" setting is now called "fullscreen" on all platforms
This commit is contained in:
Evan Debenham 2019-11-04 10:32:57 -05:00
parent e8d4881e89
commit 4f629d8868
5 changed files with 15 additions and 8 deletions

View File

@ -340,7 +340,8 @@ public abstract class Mob extends Char {
path = null;
if (Actor.findChar( target ) == null && Dungeon.level.passable[target]) {
if (Actor.findChar( target ) == null &&
(Dungeon.level.passable[target] || (flying && Dungeon.level.avoid[target]))) {
step = target;
}

View File

@ -113,7 +113,8 @@ public class Item implements Bundlable {
public void doDrop( Hero hero ) {
hero.spendAndNext(TIME_TO_DROP);
Dungeon.level.drop(detachAll(hero.belongings.backpack), hero.pos).sprite.drop(hero.pos);
int pos = hero.pos;
Dungeon.level.drop(detachAll(hero.belongings.backpack), pos).sprite.drop(pos);
}
//resets an item's properties, to ensure consistency between runs

View File

@ -132,7 +132,15 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
crossB.y = y + (height - crossB.height) / 2;
PixelScene.align(crossB);
}
@Override
public void update() {
super.update();
if (targeting && lastTarget != null && lastTarget.sprite != null){
crossM.point(lastTarget.sprite.center(crossM));
}
}
@Override
public KeyAction keyAction() {
switch (slotNum){

View File

@ -268,7 +268,7 @@ public class WndSettings extends WndTabbed {
slots.setRect(0, chkFlipTags.bottom() + GAP_TINY, WIDTH, SLIDER_HEIGHT);
add(slots);
CheckBox chkFullscreen = new CheckBox( Messages.get(this, "nav_bar") ) {
CheckBox chkFullscreen = new CheckBox( Messages.get(this, "fullscreen") ) {
@Override
protected void onClick() {
super.onClick();
@ -277,9 +277,6 @@ public class WndSettings extends WndTabbed {
};
chkFullscreen.setRect( 0, slots.bottom() + GAP_SML, WIDTH, BTN_HEIGHT );
chkFullscreen.checked(SPDSettings.fullscreen());
if (DeviceCompat.isDesktop()){
chkFullscreen.text( "Fullscreen" );
}
chkFullscreen.enable(DeviceCompat.supportsFullScreen());
add(chkFullscreen);

View File

@ -121,7 +121,7 @@ windows.wndsettings$uitab.center=Center
windows.wndsettings$uitab.flip_toolbar=Flip Toolbar
windows.wndsettings$uitab.flip_indicators=Flip Indicators
windows.wndsettings$uitab.quickslots=Quickslots
windows.wndsettings$uitab.nav_bar=Hide Navigation Bar
windows.wndsettings$uitab.fullscreen=Fullscreen
windows.wndsettings$uitab.system_font=System Font
windows.wndsettings$audiotab.music_vol=Music Volume
windows.wndsettings$audiotab.music_mute=Mute Music