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:
parent
e8d4881e89
commit
4f629d8868
|
@ -340,7 +340,8 @@ public abstract class Mob extends Char {
|
||||||
|
|
||||||
path = null;
|
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;
|
step = target;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,8 @@ public class Item implements Bundlable {
|
||||||
|
|
||||||
public void doDrop( Hero hero ) {
|
public void doDrop( Hero hero ) {
|
||||||
hero.spendAndNext(TIME_TO_DROP);
|
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
|
//resets an item's properties, to ensure consistency between runs
|
||||||
|
|
|
@ -133,6 +133,14 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
|
||||||
PixelScene.align(crossB);
|
PixelScene.align(crossB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update() {
|
||||||
|
super.update();
|
||||||
|
if (targeting && lastTarget != null && lastTarget.sprite != null){
|
||||||
|
crossM.point(lastTarget.sprite.center(crossM));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public KeyAction keyAction() {
|
public KeyAction keyAction() {
|
||||||
switch (slotNum){
|
switch (slotNum){
|
||||||
|
|
|
@ -268,7 +268,7 @@ public class WndSettings extends WndTabbed {
|
||||||
slots.setRect(0, chkFlipTags.bottom() + GAP_TINY, WIDTH, SLIDER_HEIGHT);
|
slots.setRect(0, chkFlipTags.bottom() + GAP_TINY, WIDTH, SLIDER_HEIGHT);
|
||||||
add(slots);
|
add(slots);
|
||||||
|
|
||||||
CheckBox chkFullscreen = new CheckBox( Messages.get(this, "nav_bar") ) {
|
CheckBox chkFullscreen = new CheckBox( Messages.get(this, "fullscreen") ) {
|
||||||
@Override
|
@Override
|
||||||
protected void onClick() {
|
protected void onClick() {
|
||||||
super.onClick();
|
super.onClick();
|
||||||
|
@ -277,9 +277,6 @@ public class WndSettings extends WndTabbed {
|
||||||
};
|
};
|
||||||
chkFullscreen.setRect( 0, slots.bottom() + GAP_SML, WIDTH, BTN_HEIGHT );
|
chkFullscreen.setRect( 0, slots.bottom() + GAP_SML, WIDTH, BTN_HEIGHT );
|
||||||
chkFullscreen.checked(SPDSettings.fullscreen());
|
chkFullscreen.checked(SPDSettings.fullscreen());
|
||||||
if (DeviceCompat.isDesktop()){
|
|
||||||
chkFullscreen.text( "Fullscreen" );
|
|
||||||
}
|
|
||||||
chkFullscreen.enable(DeviceCompat.supportsFullScreen());
|
chkFullscreen.enable(DeviceCompat.supportsFullScreen());
|
||||||
add(chkFullscreen);
|
add(chkFullscreen);
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@ windows.wndsettings$uitab.center=Center
|
||||||
windows.wndsettings$uitab.flip_toolbar=Flip Toolbar
|
windows.wndsettings$uitab.flip_toolbar=Flip Toolbar
|
||||||
windows.wndsettings$uitab.flip_indicators=Flip Indicators
|
windows.wndsettings$uitab.flip_indicators=Flip Indicators
|
||||||
windows.wndsettings$uitab.quickslots=Quickslots
|
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$uitab.system_font=System Font
|
||||||
windows.wndsettings$audiotab.music_vol=Music Volume
|
windows.wndsettings$audiotab.music_vol=Music Volume
|
||||||
windows.wndsettings$audiotab.music_mute=Mute Music
|
windows.wndsettings$audiotab.music_mute=Mute Music
|
||||||
|
|
Loading…
Reference in New Issue
Block a user