버그 수정. 시간 변경
This commit is contained in:
@@ -46,7 +46,7 @@ abstract class AbsFromUserPool extends AbsGeneralPool{
|
|||||||
|
|
||||||
$gameStor = KVStorage::getStorage($db, 'game_env');
|
$gameStor = KVStorage::getStorage($db, 'game_env');
|
||||||
$result = [];
|
$result = [];
|
||||||
$validUntil = TimeUtil::nowAddMinutes(24 * $gameStor->turnterm);
|
$validUntil = TimeUtil::nowAddMinutes(2 * $gameStor->turnterm);
|
||||||
while(count($result) < $pickCnt){
|
while(count($result) < $pickCnt){
|
||||||
$cand = Util::choiceRandomUsingWeightPair($pool);
|
$cand = Util::choiceRandomUsingWeightPair($pool);
|
||||||
$poolID = $cand['id'];
|
$poolID = $cand['id'];
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ use \sammo\GameUnitConst;
|
|||||||
use \sammo\CityConst;
|
use \sammo\CityConst;
|
||||||
use \sammo\GameConst;
|
use \sammo\GameConst;
|
||||||
use \sammo\SpecialityHelper;
|
use \sammo\SpecialityHelper;
|
||||||
|
use sammo\TimeUtil;
|
||||||
|
|
||||||
use function sammo\buildGeneralSpecialClass;
|
use function sammo\buildGeneralSpecialClass;
|
||||||
|
|
||||||
@@ -692,7 +693,8 @@ class GeneralBuilder{
|
|||||||
'dex3'=>$this->dex3,
|
'dex3'=>$this->dex3,
|
||||||
'dex4'=>$this->dex4,
|
'dex4'=>$this->dex4,
|
||||||
'dex5'=>$this->dex5,
|
'dex5'=>$this->dex5,
|
||||||
'aux'=>\sammo\Json::encode($this->aux)
|
'aux'=>\sammo\Json::encode($this->aux),
|
||||||
|
'lastrefresh'=>TimeUtil::now(),
|
||||||
]);
|
]);
|
||||||
$this->generalID = $db->insertId();
|
$this->generalID = $db->insertId();
|
||||||
$turnRows = [];
|
$turnRows = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user