1
This commit is contained in:
parent
753a9bcb3a
commit
315cd9702d
@ -66,6 +66,7 @@ define('TN_DAILY_BUY_PASS_STATE', 9017);
|
||||
define('TN_DAILY_BUY_LEVEL_STATE', 9018);
|
||||
define('TN_DAILY_RESET_HERO_LEVEL_STATE', 9019);
|
||||
define('TN_DAILY_REFRESH_MISSION_TIMES', 9020);
|
||||
define('TN_DAILY_GOLD_MODE_BATTLE_TIMES', 9021);
|
||||
|
||||
define('TN_WEEKLY_BEGIN', 10001);
|
||||
define('TN_WEEKLY_ACTIVE', 10002);
|
||||
|
@ -6,6 +6,12 @@ namespace mt;
|
||||
|
||||
class MapMode
|
||||
{
|
||||
const PRACTICE_MODE = 101;
|
||||
const GOLD_MODE = 201;
|
||||
const BET_MODE = 301;
|
||||
const RANKING_MODE = 401;
|
||||
const TREASURE_BOX_MODE = 501;
|
||||
|
||||
public static function find($id){
|
||||
return getXVal(self::getMetaList(), $id);
|
||||
}
|
||||
|
@ -148,8 +148,15 @@ class RoomBattleDataService extends BaseService {
|
||||
if (!$rewardMeta){
|
||||
return ;
|
||||
}
|
||||
//验证英雄是否有效期内
|
||||
if (Hero::verifyValid($heroDb)){
|
||||
$goldModeTimes = myself()->_getDailyV(TN_DAILY_GOLD_MODE_BATTLE_TIMES,0);
|
||||
if ($this->mapMode == mt\MapMode::GOLD_MODE){
|
||||
myself()->_incDailyV(TN_DAILY_GOLD_MODE_BATTLE_TIMES,0,1);
|
||||
}
|
||||
//金币模式检验
|
||||
if ($this->mapMode == mt\MapMode::GOLD_MODE &&
|
||||
(!Hero::verifyValid($heroDb) || $goldModeTimes >= 25 )){
|
||||
error_log("金币模式:出战英雄没有打金时间或每日打金场次上限");
|
||||
}else{
|
||||
if (!empty($rewardMeta['goldLoot'])){
|
||||
$items = LootService::dropOutItem($rewardMeta['goldLoot']);
|
||||
foreach ($items as $item){
|
||||
|
Loading…
x
Reference in New Issue
Block a user