Notes |
|
(0003040)
|
Ivan
|
2012-09-21 10:31
(edited on: 2012-09-21 11:27) |
|
|
|
|
Not at all.
1) It uses Poisson distribution instead of the correct one, Bernulli distribution. Bernulli would act like Poisson when there are many gorgons, but when there's 1 gorgon it would be able to kill more than 1 enemy if Poisson distribution is used.
2) It doesn't cap killed count at (gorgons_count + 9)/10. |
|
|
|
Oh, right about distribution. I forgot it already :P
Keep in mind that Death Stare can have different probability than 10%. I would change it to
int cap = 100/probability;
x = min(x, (gorgons_count + probability-1)/cap); |
|
|
(0003046)
|
Ivan
|
2012-09-26 09:52
|
|
Right now probability comes from valOfBonuses so 10% are not hardcoded. But cap is missing. Will fix. |
|
|
|
Warmonger, perhaps you mean this: x = min(x, (gorgons_count*probability + 99)/100); I think that would be right.
BTW, WoG does much more calculations on each step of the loop. I've checked and 9999 gorgons still don't cause any delays. WoG also doesn't change the cap when using different probability, which is wrong. |
|
|
(0003048)
|
Ivan
|
2012-09-26 13:14
|
|
|