Skip to content

v0.21 tweaks, fixes, optimisations

Compare
Choose a tag to compare
@jaggiJ jaggiJ released this 25 Nov 14:29
· 24 commits to master since this release
1419bf2

Outbreak Zville v0.21 is up

Bug fixes:

  • fixed: now info about amount of zombies that attack family is correct when no population left
  • changed randomly generated population minimum from 100 to 200 in village_gen function
  • (possible cause that some homes were left intact after population wiped when population < 200)
  • print('Zombies are crawling among smoldering ruins of {village[0]}.') missed f in front of quote
  • fixed value error in family_gen when roll is 100 (range should end with 101 for 100 value)
  • removed empty space at end of names in female names dictionary that probably caused empty name in family list in one of tests
  • repeating game in intro mode caused wrong story to be loaded (two different stories had same variable name)
  • added to intro game random family generation (could cause error on family fight otherwise?) -> familyChar, familyStats = family_gen(random_family)

Optimisations:

  • linux compatibility: shebang #!/usr/bin/env python3 (still needs python 3.6+ to work properly)
  • draw_grid_data() rewritten, functionality same
  • cleaning code finished
  • added debugging module logging
  • designed family and village saved between games, random game resets it
  • created data file for storing various static data
  • readable code: rewritten code format for beginning story and modified function for weather
  • little tweaks to story, story2, speed menu, ending game summary
  • optimised speed for intro game
  • added to intro game: explanation of family cell when grid is printed for user for the first time
  • simulation speed will be retained for next simulation instead of turning to default 2 (exception - 1 speed always turns to 2 on new simulation)
  • simulation speed
  • printing data for user in windows command line