Quantcast
Channel: The Battle for Wesnoth Forums
Viewing all articles
Browse latest Browse all 2298

Lua Labs • Re: Accuracy does not work

$
0
0
Just thinking out loud here...
But suddenly... when guarantee(u, false) is run, it goes from 100 to -100.. which should not be possible.
what happens if unit.attacks[w].accuracy is nil here?

Code:

unit.attacks[w].accuracy = unit.attacks[w].accuracy - 100
(or 0 of course, but for some reason I keep looking at that line like it might be equivalent to:)

Code:

unit.attacks[w].accuracy =   - 100

Statistics: Posted by white_haired_uncle — Yesterday, 4:22 pm



Viewing all articles
Browse latest Browse all 2298

Latest Images

Trending Articles



Latest Images