v0.8.0: fixed the following:
- wards displacing items for sale or in containers - rare crash bugs when DK dies on his throne - capitalization error in health boost buff name
This commit is contained in:
parent
2de6ff5031
commit
b98ed1d071
|
@ -421,10 +421,12 @@ public class DwarfKing extends Mob {
|
||||||
|
|
||||||
if (Dungeon.level.solid[pos]){
|
if (Dungeon.level.solid[pos]){
|
||||||
Heap h = Dungeon.level.heaps.get(pos);
|
Heap h = Dungeon.level.heaps.get(pos);
|
||||||
for (Item i : h.items){
|
if (h != null) {
|
||||||
|
for (Item i : h.items) {
|
||||||
Dungeon.level.drop(i, pos + Dungeon.level.width());
|
Dungeon.level.drop(i, pos + Dungeon.level.width());
|
||||||
}
|
}
|
||||||
h.destroy();
|
h.destroy();
|
||||||
|
}
|
||||||
Dungeon.level.drop(new ArmorKit(), pos + Dungeon.level.width()).sprite.drop(pos);
|
Dungeon.level.drop(new ArmorKit(), pos + Dungeon.level.width()).sprite.drop(pos);
|
||||||
} else {
|
} else {
|
||||||
Dungeon.level.drop(new ArmorKit(), pos).sprite.drop();
|
Dungeon.level.drop(new ArmorKit(), pos).sprite.drop();
|
||||||
|
|
|
@ -39,7 +39,7 @@ public abstract class NPC extends Mob {
|
||||||
|
|
||||||
protected void throwItem() {
|
protected void throwItem() {
|
||||||
Heap heap = Dungeon.level.heaps.get( pos );
|
Heap heap = Dungeon.level.heaps.get( pos );
|
||||||
if (heap != null) {
|
if (heap != null && heap.type == Heap.Type.HEAP) {
|
||||||
int n;
|
int n;
|
||||||
do {
|
do {
|
||||||
n = pos + PathFinder.NEIGHBOURS8[Random.Int( 8 )];
|
n = pos + PathFinder.NEIGHBOURS8[Random.Int( 8 )];
|
||||||
|
|
|
@ -688,7 +688,7 @@ items.potions.elixirs.elixirofmight.name=elixir of might
|
||||||
items.potions.elixirs.elixirofmight.msg_1=+1 str, +%d hp
|
items.potions.elixirs.elixirofmight.msg_1=+1 str, +%d hp
|
||||||
items.potions.elixirs.elixirofmight.msg_2=Newfound strength surges through your body.
|
items.potions.elixirs.elixirofmight.msg_2=Newfound strength surges through your body.
|
||||||
items.potions.elixirs.elixirofmight.desc=This powerful liquid will course through your muscles, permanently increasing your strength by one point and temporarily increasing maximum health by %d points. The health boost scales with your maximum health, but will slowly wear off as you gain levels.
|
items.potions.elixirs.elixirofmight.desc=This powerful liquid will course through your muscles, permanently increasing your strength by one point and temporarily increasing maximum health by %d points. The health boost scales with your maximum health, but will slowly wear off as you gain levels.
|
||||||
items.potions.elixirs.elixirofmight$htboost.name=max health boost
|
items.potions.elixirs.elixirofmight$htboost.name=Max Health Boost
|
||||||
items.potions.elixirs.elixirofmight$htboost.desc=Your body feels unnaturally strong and healthy.\n\nYour maximum health is boosted for an extended period of time. As you gain levels, the boost will steadily fade.\n\nCurrent boost amount: %d\nLevels remaining: %d
|
items.potions.elixirs.elixirofmight$htboost.desc=Your body feels unnaturally strong and healthy.\n\nYour maximum health is boosted for an extended period of time. As you gain levels, the boost will steadily fade.\n\nCurrent boost amount: %d\nLevels remaining: %d
|
||||||
|
|
||||||
items.potions.elixirs.elixiroftoxicessence.name=elixir of toxic essence
|
items.potions.elixirs.elixiroftoxicessence.name=elixir of toxic essence
|
||||||
|
|
Loading…
Reference in New Issue
Block a user