New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove bogus pvals #3609
Comments
Comment by magnate on 22 Sep 2011 13:02 UTC |
Comment by takkaria on 22 Sep 2011 17:12 UTC If number is u16b and we use that to store the GP value, why would multiplication be needed? |
Comment by magnate on 23 Sep 2011 07:57 UTC So in the first instance we move to o_ptr->fuel for light/food/charges, and charges remain munged together for a stack until we sort out the array-leakage ... |
Comment by takkaria on 23 Sep 2011 12:14 UTC |
Comment by magnate on 13 Oct 2011 09:35 UTC |
Comment by magnate on 13 Oct 2011 13:45 UTC |
Comment by magnate on 21 Oct 2011 15:58 UTC |
Comment by magnate on 22 Oct 2011 12:56 UTC |
Reported by magnate on 22 Sep 2011 13:00 UTC
Prior to lots of other object stuff (see [[Goals for 3.4]] but in particular #1039) we need to stop using pvals for stuff that isn't a pval flag. The three cases are:
food: I suggest a simple o_ptr->food value would suffice, though there are probably better solutions long-term
fuel: again, o_ptr->fuel suggests itself. In fact this could do for both fuel and food, unless we envisage some sort of elvish draught that would have one value when quaffed and another when poured into a lamp. Decrementing this value for in-use lights would probably be easier than using o_ptr->timeout.
gold: IMO this ought to be fixed by making o_ptr->number u16b and multiplying by sval to get the gp value
The text was updated successfully, but these errors were encountered: