mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-17 01:56:07 +00:00
more updates
This commit is contained in:
@@ -3825,7 +3825,7 @@ $crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\"
|
||||
foreach($harray as $hdata){
|
||||
if((time()-$hdata['lastupdate'])>=1){
|
||||
if($hdata['health']<100 and $hdata['health']>0){
|
||||
$reg = $hdata['health']+$hdata['regeneration']*5*ceil(SPEED/10)/86400*(time()-$hdata['lastupdate']);
|
||||
$reg = $hdata['health']+$hdata['regeneration']*5*SPEED/86400*(time()-$hdata['lastupdate']);
|
||||
if($reg <= 100){
|
||||
$database->modifyHero("health",$reg,$hdata['heroid']);
|
||||
}else{
|
||||
|
||||
@@ -221,7 +221,7 @@ class MYSQL_DB {
|
||||
}
|
||||
|
||||
function setDeleting($uid, $mode) {
|
||||
$time = time() + 5 * 3600;
|
||||
$time = time() + 72 * 3600;
|
||||
if(!$mode) {
|
||||
$q = "INSERT into " . TB_PREFIX . "deleting values ($uid,$time)";
|
||||
} else {
|
||||
|
||||
@@ -106,7 +106,7 @@ public function procMtime($time, $pref = 3) {
|
||||
break;
|
||||
}
|
||||
*/
|
||||
- $time += 3600*1; //Edit this yourself
|
||||
- $time += 3600*0; //Edit this yourself
|
||||
+ $time += 0; //Edit this yourself
|
||||
|
||||
$today = date('d',time())-1;
|
||||
|
||||
@@ -168,7 +168,6 @@ class Session {
|
||||
if($this->userarray['b4'] > $this->time) {
|
||||
$this->bonus4 = 1;
|
||||
}
|
||||
$this->money = $this->userarray['money'];
|
||||
}
|
||||
|
||||
private function SurfControl(){
|
||||
|
||||
Reference in New Issue
Block a user