Rushwind13 / JMoria

My from-scratch implementation of a Roguelike game that will be an homage to IMoria
4 stars 4 forks source link

nice to have: lookup items/monsters by Name (or object type) #70

Closed Rushwind13 closed 2 weeks ago

Rushwind13 commented 1 month ago

Given I have a dagger equipped When I ask "is there a dagger in equipment" Then the answer is yes

Given I have a dagger in inventory When I ask "is there a dagger in inventory" Then the answer is yes

Given I have spawned a Red Dragon When I ask "is there a Red Dragon in the dungeon" Then the answer is yes

Notes:

Rushwind13 commented 2 weeks ago

it's out-of-engine (CLI) but https://github.com/Rushwind13/JMoria/pull/83 and https://github.com/Rushwind13/JMoria/pull/84 cover some of this, and I think that Link->m_dwIndex covers a lot of the rest.