View Issue Details

IDProjectCategoryLast Update
0008921Valley 1Bug - GameplayJul 17, 2012 4:37 pm
ReporterUlrox Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version1.200 (Post-Launch Series 2) 
Fixed in Version1.201 
Summary0008921: Dispatch mission survival rate does not handle negative numbers properly.
DescriptionExample numbers for a resource dispatch:

224 mood : 87% survival
151 mood : 40% survival
108 mood : 20% survival
95 mood : 16% survival
2 mood : 0% survival
-20 mood : 1% survival
-111 mood : 21% survival
-182 mood : 68% survival
-240 mood : 100% survival
-820 mood : 100% survival
TagsNo tags attached.
Internal WeightFix Before Major Release

Activities

Ulrox

Jul 13, 2012 1:59 pm

reporter  

more buggyness.jpg (346,348 bytes)

khadgar

Jul 14, 2012 8:28 pm

reporter   ~0026754

Absolute value!

(It may be rude to edit & hijack your bug, but I wanted it to contain more information so it can be fixed faster!)

Ulrox

Jul 15, 2012 2:47 am

reporter   ~0026758

Ahh no worries Khadgar. I was having difficulty creating a good description for it anyway and I knew it was lacking. :)

keith.lamothe

Jul 17, 2012 4:37 pm

administrator   ~0026856

For 1.201:

* Fixed a bug in computing dispatch mission survival chance where the mood points where an intermediate result of mood/danger was being squared. This was fine for positive mood values as the idea was that if the ratio was 9:10 the actual result would be 0.9*0.9 = 0.81. The problem is that -0.9*-0.9 = +0.81, too (math class strike back!). Now it won't go below zero before that, so squaring is fine.

Thanks :)

Issue History

Date Modified Username Field Change
Jul 13, 2012 1:59 pm Ulrox New Issue
Jul 13, 2012 1:59 pm Ulrox File Added: more buggyness.jpg
Jul 14, 2012 8:28 pm khadgar Note Added: 0026754
Jul 14, 2012 8:28 pm khadgar Category Programming Todo => Bug - Gameplay
Jul 14, 2012 8:28 pm khadgar Summary Another villager bug. If a villager has -3000 mood that villager can attack the overlord and have 85% chance of survival. => Dispatch mission survival rate does not handle negative numbers properly.
Jul 14, 2012 8:28 pm khadgar Description Updated
Jul 15, 2012 2:47 am Ulrox Note Added: 0026758
Jul 16, 2012 8:18 am tigersfan Internal Weight => Fix Before Major Release
Jul 16, 2012 8:18 am tigersfan Assigned To => Chris_McElligottPark
Jul 16, 2012 8:18 am tigersfan Status new => assigned
Jul 17, 2012 4:37 pm keith.lamothe Note Added: 0026856
Jul 17, 2012 4:37 pm keith.lamothe Status assigned => resolved
Jul 17, 2012 4:37 pm keith.lamothe Fixed in Version => 1.201
Jul 17, 2012 4:37 pm keith.lamothe Resolution open => fixed