<?php
/**
 * 日常任务奖励
 */

namespace Tool\LoadTemplate\Logic;

use Game\Constant\ConstTemplate\TemplateDailyReward;
use Tool\LoadTemplate\ILogic;
use Tool\LoadTemplate\Util;

class DailyRewardLogic extends ILogic
{
    public function dealRow(&$row): bool
    {
        $row[TemplateDailyReward::Vitality] = (int)$row[TemplateDailyReward::Vitality];
        $row[TemplateDailyReward::ItemReward] = Util::getFormatArray($row[TemplateDailyReward::ItemReward]);
        $row[TemplateDailyReward::TaskType] = (int)$row[TemplateDailyReward::TaskType];
        return true;
    }
}
