v0.6.0: bugfixes relating to swordsword and grass terrain flags
This commit is contained in:
+12
-3
@@ -271,7 +271,10 @@ public abstract class RegularLevel extends Level {
|
|||||||
type = Heap.Type.HEAP;
|
type = Heap.Type.HEAP;
|
||||||
}
|
}
|
||||||
int cell = randomDropCell();
|
int cell = randomDropCell();
|
||||||
if (map[cell] == Terrain.HIGH_GRASS) map[cell] = Terrain.GRASS;
|
if (map[cell] == Terrain.HIGH_GRASS) {
|
||||||
|
map[cell] = Terrain.GRASS;
|
||||||
|
losBlocking[cell] = false;
|
||||||
|
}
|
||||||
drop( Generator.random(), cell ).type = type;
|
drop( Generator.random(), cell ).type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -291,13 +294,19 @@ public abstract class RegularLevel extends Level {
|
|||||||
}
|
}
|
||||||
} while (traps.get(cell) instanceof ExplosiveTrap);
|
} while (traps.get(cell) instanceof ExplosiveTrap);
|
||||||
drop( item, cell ).type = Heap.Type.HEAP;
|
drop( item, cell ).type = Heap.Type.HEAP;
|
||||||
if (map[cell] == Terrain.HIGH_GRASS) map[cell] = Terrain.GRASS;
|
if (map[cell] == Terrain.HIGH_GRASS) {
|
||||||
|
map[cell] = Terrain.GRASS;
|
||||||
|
losBlocking[cell] = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item item = Bones.get();
|
Item item = Bones.get();
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
int cell = randomDropCell();
|
int cell = randomDropCell();
|
||||||
if (map[cell] == Terrain.HIGH_GRASS) map[cell] = Terrain.GRASS;
|
if (map[cell] == Terrain.HIGH_GRASS) {
|
||||||
|
map[cell] = Terrain.GRASS;
|
||||||
|
losBlocking[cell] = false;
|
||||||
|
}
|
||||||
drop( item, cell ).type = Heap.Type.REMAINS;
|
drop( item, cell ).type = Heap.Type.REMAINS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -845,8 +845,8 @@ items.weapon.melee.meleeweapon.stats_unknown=Typically this _tier-%1$d_ melee we
|
|||||||
items.weapon.melee.meleeweapon.probably_too_heavy=Probably this weapon is too heavy for you.
|
items.weapon.melee.meleeweapon.probably_too_heavy=Probably this weapon is too heavy for you.
|
||||||
items.weapon.melee.meleeweapon.stats_desc=
|
items.weapon.melee.meleeweapon.stats_desc=
|
||||||
|
|
||||||
items.weapon.melee.newshortsword.name=shortsword
|
items.weapon.melee.shortsword.name=shortsword
|
||||||
items.weapon.melee.newshortsword.desc=A quite short sword, only a few inches longer than a dagger.
|
items.weapon.melee.shortsword.desc=A quite short sword, only a few inches longer than a dagger.
|
||||||
|
|
||||||
items.weapon.melee.quarterstaff.name=quarterstaff
|
items.weapon.melee.quarterstaff.name=quarterstaff
|
||||||
items.weapon.melee.quarterstaff.stats_desc=This weapon blocks some damage.
|
items.weapon.melee.quarterstaff.stats_desc=This weapon blocks some damage.
|
||||||
|
|||||||
Reference in New Issue
Block a user