v2.5.0: players can now catalog traps/plants by examine

This commit is contained in:
Evan Debenham
2024-08-29 15:19:40 -04:00
parent e3fae42450
commit a430f10a6e
2 changed files with 8 additions and 3 deletions

View File

@@ -127,10 +127,10 @@ windows.wndjournal$catalogtab.title_lore=Lore
windows.wndjournal$catalogtab.not_seen_item=You haven't found and identified that item in any of your runs yet.
windows.wndjournal$catalogtab.not_seen_enchantment=You haven't found and identified a weapon with that enchantment in any of your runs yet.
windows.wndjournal$catalogtab.not_seen_glyph=You haven't found and identified an armor with that glyph in any of your runs yet.
windows.wndjournal$catalogtab.not_seen_enemy=This enemy hasn't been defeated in any of your runs yet.
windows.wndjournal$catalogtab.not_seen_enemy=You haven't defeated this enemy in any of your runs yet.
windows.wndjournal$catalogtab.not_seen_ally=You haven't encountered this character in any of your runs yet.
windows.wndjournal$catalogtab.not_seen_trap=You haven't triggered this trap in any of your runs yet.
windows.wndjournal$catalogtab.not_seen_plant=You haven't trampled this plant in any of your runs yet.
windows.wndjournal$catalogtab.not_seen_trap=You haven't examined or triggered this trap in any of your runs yet.
windows.wndjournal$catalogtab.not_seen_plant=You haven't examined or trampled this plant in any of your runs yet.
windows.wndjournal$catalogtab.upgrade_count=You have upgraded this item a total of _%,d_ times.
windows.wndjournal$catalogtab.trinket_count=You have crafted or upgraded this item a total of _%,d_ times.
windows.wndjournal$catalogtab.use_count=You have used this item a total of _%,d_ times.

View File

@@ -61,6 +61,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.potions.Potion;
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfTeleportation;
import com.shatteredpixel.shatteredpixeldungeon.items.trinkets.DimensionalSundial;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee.MeleeWeapon;
import com.shatteredpixel.shatteredpixeldungeon.journal.Catalog;
import com.shatteredpixel.shatteredpixeldungeon.journal.Document;
import com.shatteredpixel.shatteredpixeldungeon.journal.Journal;
import com.shatteredpixel.shatteredpixeldungeon.journal.Notes;
@@ -1572,8 +1573,12 @@ public class GameScene extends PixelScene {
GameScene.show(new WndInfoItem((Heap)o));
} else if ( o instanceof Plant ){
GameScene.show( new WndInfoPlant((Plant) o) );
//plants can be harmful to trample, so let the player ID just by examine
Catalog.setSeen(o.getClass());
} else if ( o instanceof Trap ){
GameScene.show( new WndInfoTrap((Trap) o));
//traps are often harmful to trigger, so let the player ID just by examine
Catalog.setSeen(o.getClass());
} else {
GameScene.show( new WndMessage( Messages.get(GameScene.class, "dont_know") ) ) ;
}