Add something like target_type to your spell information tables alongside with mana, etc.
So e.g. identify will have target_type = "unknown item" and fire ball will have "map tile" and so on. Now you can gain all information before casting in UI level. This approach probably cannot replicate all Angband functionality, but everything really important can be done.
So e.g. identify will have target_type = "unknown item" and fire ball will have "map tile" and so on. Now you can gain all information before casting in UI level. This approach probably cannot replicate all Angband functionality, but everything really important can be done.
Comment