Code: Alles auswählen
proc sparetime_get_popsoll {civ} {
if {$civ<0.15} {
return [expr {7.0+$civ*20.0}]
} elseif {$civ<0.4} {
return [expr {5.2+$civ*32.0}]
} else {
return [hmin [expr {10.0+$civ*20.0}] 22.0]
Code: Alles auswählen
proc sparetime_get_popsoll {civ} {
if {$civ<0.15} {
return [expr {7.0+$civ*20.0}]
} elseif {$civ<0.4} {
return [expr {5.2+$civ*32.0}]
} else {
return [hmin [expr {10.0+$civ*20.0}] 22.0]
Code: Alles auswählen
proc sparetime_get_popsoll {civ} {
if {$civ<0.15} {
return [expr {7.0+$civ*20.0}]
} elseif {$civ<0.4} {
return [expr {5.2+$civ*32.0}]
} else {
set max_population 50.0
return [hmin [expr {(54.0 - 2.0*max_population)+$civ*(5*max_population - 90)}] max_population]
}
}