Re: [Tutor] Boosts

2013-07-01 Thread Steven D'Aprano
On 02/07/13 06:41, Jack Little wrote: In my concept, when the player buys a boost, their karma (a global) is multiplied by 25% when added to. How would I do this? karma = karma * 0.25 which can be written as: karma *= 0.25 If this is inside a function (as it should be!) you will need to ind

Re: [Tutor] Boosts

2013-07-01 Thread Dave Angel
On 07/01/2013 04:41 PM, Jack Little wrote: In my concept, when the player buys a boost, their karma (a global) is multiplied by 25% when added to. How would I do this? Making a changeable global is almost certainly a mistake. But to multiply by 25%, you simply divide by 4. karma /= 4 --