<?php

namespace Tool\LoadTemplate\Logic;

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

class IntimacyRewardLogic extends ILogic
{
    public function dealRow(&$row): bool
    {
        $row[TemplateIntimacyReward::Condition] = (int)$row[TemplateIntimacyReward::Condition];
        $row[TemplateIntimacyReward::Reward] = Util::getFormatArray($row[TemplateIntimacyReward::Reward]);
        return true;
    }
}
