May 19, 2012, 09:22:02 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Survivors found when securing buildings have no chance to be injured?  (Read 930 times)
kronos
Survivor

Posts: 6


« on: December 04, 2008, 03:02:10 AM »

Not sure if the code was revamped for 1.7, but I'm seeing this when survivors are discovered while securing a building:

survivor.Wounds = RND.Next(1)

.Next(int) is exclusive, meaning the value will always be 0.

Speaking of which, it would be nice if there was a chance of injury for all new found survivors (i.e., Church, while raiding), since I always have too many medkits.
Logged
LoganB
Developer
Posts: 103



« Reply #1 on: December 04, 2008, 06:16:45 PM »

Technically, that is a bug. I haven't made any major changes to the building resource code in a while, so it's probably been there for some time. :P

I have a Mersenne Twister random number generator that I use in some projects and not others that is inclusive - like Zero Day - and that's probably why the bug is there. I'll likely change it to 2, rebuild the code and upload the new executable with upping the version number as it's not game-breaking.

I'll also think about making Church survivors have a chance to be injured. :)

Thanks for letting me know!
« Last Edit: December 04, 2008, 06:18:38 PM by LoganB » Logged
kronos
Survivor

Posts: 6


« Reply #2 on: December 04, 2008, 10:55:07 PM »

No problem.

I guess now I have to check out Zero Day as well...
Logged
LoganB
Developer
Posts: 103



« Reply #3 on: January 12, 2009, 02:13:01 AM »

This bug has been fixed in 1.8. Moved to Resolved.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.14 | SMF © 2006-2007, Simple Machines LLC
intellectual