feat: Constraint 시스템에 NoPaneltyKey 추가

This commit is contained in:
Hide_D committed 2024-06-08 16:15:19 +00:00
1 parent ad223a9c75
commit 9415d79a3a
3 files changed
+180 -69

No files matched your search

@@ -2,6 +2,8 @@
namespace sammo\Constraint;
use sammo\Enums\PenaltyKey;
class ConstraintHelper{
static function AdhocCallback(callable $callback):array{
@@ -176,6 +178,10 @@ class ConstraintHelper{
return [__FUNCTION__];
}
static function NoPanelty(PenaltyKey $penaltyKey):array{
return [__FUNCTION__, $penaltyKey];
}
static function OccupiedCity(bool $allowNeutral=false):array{
return [__FUNCTION__, $allowNeutral];
}