P_DIE_WHEN_LOSE = 0.7 # 战败死亡的概率 MAX_BATTLE_ROUND = 100 # 战斗最大回合数 MARRIAGE_RATE = 0.3 # 每名适龄青年每次模拟找对象的概率 # 当每人资源大于阈值时,生育率正常,战斗率正常 NORMAL_BIRTH_RATE = 0.15 NORMAL_BATTLE_RATE = 0.3 # 当每人资源低于阈值时,生育率线性下降,战斗率线性上升 LOW_BIRTH_RATE = 0.05 HIGH_BATTLE_RATE = 0.9 # 每10轮有5%概率发生灾难 DISASTER_PROB = 0.05 DISASTER_FREQUENCY = 10 # 每50轮有10%概率发生战争 WAR_PROB = 0.1 WAR_FREQUENCY = 50 # 成仙等级 IMMORTAL_RANK = 5