Also, you cant see money on the ground unless it is out of your vision.
Fixed, thanks!
Yeah, Outcast Orange helped me think a fix through for that, I just need to implement it now...
In the mean time, I've almost got spells working the way I want. I've put a 25 point cap on the 5 primary skills, and I've made sure changing it is easy, in case that's too low or high. The equation to see if a spell can be cast from memory is this:
spell_understanding - (skill_cap-player_intelligence)
if the value is positive then the spell can be cast from memory, otherwise it cannot. This has the added benefit of returning either the number of times it can be cast from memory (if positive), or the number of times it needs to be cast to remember it (if negative); give or take one to adjust for zero, depending on whether or not I allow casting then...
So basically, a character with 7 intelligence would need to cast a spell at least (25-7=18) times to cast from memory. It's a little extreme, so I may put a cap on it (no matter how low your intelligence, you can cast after 10 uses, or something).
Anyways, I just need to add casting from items (should be easy) and spell memorization (a little trickier, but not too hard). The only difficult part with spell memorization is figuring out how to save/load it. I can't really save/load it as part of the spell list, as that's reloaded from the raw file (technically it's a .txt at the moment...) each time you start a game. I'm thinking I may use a
map, and store the spells name along with the number of times it's been cast. That way, if a spell is changed it'll still work okay, and if a spell is removed it won't mess anything up, you could even add it back in later, with completely different effects, and it should still work.
I need sleep at the moment, I'll be attending the midnight release for Assassin's Creed 2 at GameStop tomorrow, assuming I can get a ride (freaking under-18 curfew....), but I'll be back on this tomorrow, as much as school and scheduled events allow.
Thanks again for all the advise and bug reports everyone, it's been incredibly helpful, and I'm really grateful!
[EDIT]: One more bug-fix related to spell-items and then some cleanup, and I can get this version up
After this, and maybe a bug-fix release depending on how buggy this version is, I may do a rewrite. I've been doing a fair amount of reading into coding standards, formatting, naming and such, and it'll give me a really good excuse to clean up my mess...
On the subject of a re-write, how does everyone feel about the size of the maps now? I finally figured out how to change the size of the window with PDCurses, and I'm debating making the maps a bit bigger, and giving myself a little more room for the display...