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

@@ -1449,6 +1449,9 @@ void load_missile() ////
else if ((arrow == 24) && (bow < 24)) {
add_string_to_buf("Fire: Equip some arrows. ");
}
else if(crossbow == 24 && bolts < 24) {
add_string_to_buf("Fire: Equip some bolts. ");
}
else if ((arrow < 24) && (bow < 24)) {
missile_inv_slot = bow;
ammo_inv_slot = arrow;

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++;
}

View File

@@ -872,6 +872,8 @@ short do_look(location space)
add_string_to_buf(" Crate ");
if (univ.town.is_barrel(space.x,space.y))
add_string_to_buf(" Barrel ");
if(univ.town.is_block(space.x,space.y))
add_string_to_buf(" Stone Block ");
if (univ.town.is_fire_barr(space.x,space.y))
add_string_to_buf(" Magic Barrier ");
if (univ.town.is_force_barr(space.x,space.y))