forked from devsam/core
27 lines
517 B
PHP
27 lines
517 B
PHP
<?php
|
|
|
|
namespace sammo\GameUnitConstraint;
|
|
|
|
use sammo\General;
|
|
|
|
class ReqChief extends BaseGameUnitConstraint
|
|
{
|
|
public function __construct()
|
|
{
|
|
}
|
|
|
|
public function test(General $general, array $ownCities, array $ownRegions, int $relativeYear, int $tech, array $nationAux): bool
|
|
{
|
|
if($general->getVar('officer_level') >= 5){
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public function getInfo(): string
|
|
{
|
|
return "군주 및 수뇌부만 가능";
|
|
}
|
|
}
|