forked from devsam/core
nation type을 char로 변경하고 해당하는 iActionTrigger 추가
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_덕가 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 4;
|
||||
static $name = '덕가';
|
||||
static $info = '';
|
||||
static $pros = '치안↑ 인구↑ 민심↑';
|
||||
static $cons = '쌀수입↓ 수성↓';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_도가 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 6;
|
||||
static $name = '도가';
|
||||
static $info = '';
|
||||
static $pros = '인구↑';
|
||||
static $cons = '기술↓ 치안↓';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_도적 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 9;
|
||||
static $name = '도적';
|
||||
static $info = '';
|
||||
static $pros = '계략↑';
|
||||
static $cons = '금수입↓ 치안↓ 민심↓';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_명가 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 13;
|
||||
static $name = '명가';
|
||||
static $info = '';
|
||||
static $pros = '기술↑ 인구↑';
|
||||
static $cons = '쌀수입↓ 수성↓';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_묵가 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 5;
|
||||
static $name = '묵가';
|
||||
static $info = '';
|
||||
static $pros = '수성↑';
|
||||
static $cons = '기술↓';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_법가 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 1;
|
||||
static $name = '법가';
|
||||
static $info = '';
|
||||
static $pros = '금수입↑ 치안↑';
|
||||
static $cons = '인구↓ 민심↓';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_병가 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 3;
|
||||
static $name = '병가';
|
||||
static $info = '';
|
||||
static $pros = '기술↑ 수성↑';
|
||||
static $cons = '인구↓ 민심↓';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_불가 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 10;
|
||||
static $name = '불가';
|
||||
static $info = '';
|
||||
static $pros = '민심↑ 수성↑';
|
||||
static $cons = '금수입↓';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_오두미도 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 8;
|
||||
static $name = '중립';
|
||||
static $info = '';
|
||||
static $pros = '쌀수입↑ 인구↑';
|
||||
static $cons = '기술↓ 수성↓ 내정↓';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_유가 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 2;
|
||||
static $name = '유가';
|
||||
static $info = '';
|
||||
static $pros = '내정↑ 민심↑';
|
||||
static $cons = '쌀수입↓';
|
||||
|
||||
public function onCalcDomesticTurnScore(General $general, string $turnType, float $score, float $cost, float $successRate, float $failRate){
|
||||
if($turnType == 'agri' || $turnType == 'comm'){
|
||||
$score *= 1.1;
|
||||
$cost *= 0.8;
|
||||
}
|
||||
|
||||
return [$score, $cost, $successRate, $failRate];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_음양가 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 12;
|
||||
static $name = '음양가';
|
||||
static $info = '';
|
||||
static $pros = '내정↑ 인구↑';
|
||||
static $cons = '기술↓ 전략↓';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_종횡가 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 11;
|
||||
static $name = '종횡가';
|
||||
static $info = '';
|
||||
static $pros = '전략↑ 수성↑';
|
||||
static $cons = '금수입↓ 내정↓';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_중립 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 0;
|
||||
static $name = '중립';
|
||||
static $info = '';
|
||||
static $pros = '-';
|
||||
static $cons = '-';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace sammo\TriggerNationType;
|
||||
use \sammo\iActionTrigger;
|
||||
|
||||
class che_태평도 implements iActionTrigger{
|
||||
use \sammo\DefaultActionTrigger;
|
||||
|
||||
static $id = 7;
|
||||
static $name = '태평도';
|
||||
static $info = '';
|
||||
static $pros = '인구↑ 민심↑';
|
||||
static $cons = '기술↓ 수성↓';
|
||||
|
||||
|
||||
}
|
||||
+1
-1
@@ -202,7 +202,7 @@ CREATE TABLE `nation` (
|
||||
`power` INT(8) NULL DEFAULT '0',
|
||||
`spy` CHAR(255) NOT NULL DEFAULT '{}',
|
||||
`level` INT(1) NULL DEFAULT '0',
|
||||
`type` INT(2) NULL DEFAULT '0',
|
||||
`type` VARCHAR(16) NULL DEFAULT 'che_중립',
|
||||
`rule` TEXT NULL DEFAULT '',
|
||||
`history` MEDIUMTEXT NULL DEFAULT '',
|
||||
`board0` TEXT NULL DEFAULT '',
|
||||
|
||||
Reference in New Issue
Block a user