v0.9.2a: darts no longer reveal xbow level indirectly

This commit is contained in:
Evan Debenham 2021-03-05 18:36:42 -05:00
parent 1b24c30cd4
commit 5b8293db53

View File

@ -143,7 +143,16 @@ public class Dart extends MissileWeapon {
@Override
public String info() {
updateCrossbow();
return super.info();
if (bow != null && !bow.isIdentified()){
int level = bow.level();
//temporarily sets the level of the bow to 0 for IDing purposes
bow.level(0);
String info = super.info();
bow.level(level);
return info;
} else {
return super.info();
}
}
@Override