expand a building - Printable Version +- TWLan Forum (https://twlan.org) +-- Forum: Deutsch (https://twlan.org/forumdisplay.php?fid=1) +--- Forum: Gott und die Welt (https://twlan.org/forumdisplay.php?fid=4) +--- Thread: expand a building (/showthread.php?tid=4532) |
expand a building - sinner - 23.07.2011 Does someone know how to calculate the needed time to expand a building if I have the $factor, $world_speed, $build_level and $build (the dbname of a build, just to find out the buildings expand time); Let's just supose I have a function as is follows: PHP Code: function get_build_time($build,$level,$world_speed) { PHP Code: return ceil($time[$build]*(percentage($level,maxstage($build))*$level/6)); //i used this, as a formula to get similar values like dslan ones Does anyone know the formula ? I don't need the function word by word, i can make it on my own, just the formula so I can develop it. RE: Formula to calculate time to expand a building - Steffen - 23.07.2011 Why you write an own function you can use the Function get_time($main_stage,$dbname,$stage) (part of the builds class, saved in $cl_builds) RE: Formula to calculate time to expand a building - Molt - 24.07.2011 PHP Code: return round(($building_time * pow($stage_factor, $building_stage)) / pow($main_factor, $main_stage)); RE: Formula to calculate time to expand a building - sinner - 24.07.2011 steffengy, it's not about dslan what i'm working at, so I can't use the functions from there RE: expand a building - maikmille - 26.07.2011 then it must be in the section "Sonstige Fragen" when its not about TWLan / DSLan RE: expand a building - Molt - 26.07.2011 ~moved |