def wagon_fire(env: GameEnvironment): env.mileage -= 15 env.food -= 20 env.ammo -= 400 env.repairs = env.repairs - 2 - 6 * random() steady_print( "You have a fire in your wagon. Food and supplies are damaged.\n")
def hailstorm(env: GameEnvironment): env.mileage = env.mileage - 5 - 10 * random() env.ammo -= 150 env.repairs = env.repairs - 2 - 2 * random() steady_print( "You're caught in a fierce hailstorm; ammo and supplies are damaged.\n" )
def broken_arm(env: GameEnvironment): env.mileage = env.mileage - 5 - (4 * random()) env.repairs = env.repairs - 1 - (2 * random()) steady_print( "Bad luck…your daughter breaks her arm. You must stop and\n" "make a splint and sling with some of your medical supplies.\n")