Some little bits

- Check is_block as well as is_barrel in some places
(is_block is a feature new to OBoE, I have no idea if it works yet)
- Print an "equip bolts" message when trying to fire a crossbow without them
This commit is contained in:
2014-12-01 20:12:45 -05:00
parent c62ac56702
commit 4a68c16c2a
3 changed files with 6 additions and 1 deletions

View File

@@ -181,7 +181,7 @@ short sight_obscurity(short x,short y) {
store += 2;
if ((univ.town.is_fire_barr(x,y)) || (univ.town.is_force_barr(x,y)))
return 5;
if ((univ.town.is_crate(x,y)) || (univ.town.is_barrel(x,y)))
if(univ.town.is_crate(x,y) || univ.town.is_barrel(x,y) || univ.town.is_block(x,y))
store++;
}