<?php

namespace Tool\LoadTemplate\Logic;

use Game\Constant\ConstTemplate\TemplateIntimacy;
use Tool\LoadTemplate\ILogic;

class IntimacyLogic extends ILogic
{
    public function dealRow(&$row): bool
    {
        if ($row[TemplateIntimacy::Limit] == "None") {
            $row[TemplateIntimacy::Limit] = 9999;
        } else {
            $row[TemplateIntimacy::Limit] = (int)$row[TemplateIntimacy::Limit];
        }
        return true;
    }
}
