forked from devsam/core
trigger 타입에서 $tunType을 한글로 변경. 성격 추가. 계략 성공 확률을 onCalcDomestic으로 통합.
This commit is contained in:
@@ -18,7 +18,7 @@ class che_경작 implements iActionTrigger{
|
||||
];
|
||||
|
||||
public function onCalcDomestic(string $turnType, string $varType, float $value):float{
|
||||
if($turnType == 'agri'){
|
||||
if($turnType == '농업'){
|
||||
if($varType == 'score') return $value * 1.1;
|
||||
if($varType == 'cost') return $value * 0.8;
|
||||
if($varType == 'succ') return $value + 0.1;
|
||||
|
||||
@@ -19,7 +19,12 @@ class che_귀모 implements iActionTrigger{
|
||||
SpecialityConst::STAT_INTEL
|
||||
];
|
||||
|
||||
public function onCalcSabotageProp(float $successRate):float{
|
||||
return $successRate + 0.2;
|
||||
public function onCalcDomestic(string $turnType, string $varType, float $value):float{
|
||||
if($turnType == '계략'){
|
||||
if($varType == 'succ') return $value + 0.1;
|
||||
}
|
||||
|
||||
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ class che_발명 implements iActionTrigger{
|
||||
];
|
||||
|
||||
public function onCalcDomestic(string $turnType, string $varType, float $value):float{
|
||||
if($turnType == 'tech'){
|
||||
if($turnType == '기술'){
|
||||
if($varType == 'score') return $value * 1.1;
|
||||
if($varType == 'cost') return $value * 0.8;
|
||||
if($varType == 'succ') return $value + 0.1;
|
||||
|
||||
@@ -18,7 +18,7 @@ class che_상재 implements iActionTrigger{
|
||||
];
|
||||
|
||||
public function onCalcDomestic(string $turnType, string $varType, float $value):float{
|
||||
if($turnType == 'comm'){
|
||||
if($turnType == '상업'){
|
||||
if($varType == 'score') return $value * 1.1;
|
||||
if($varType == 'cost') return $value * 0.8;
|
||||
if($varType == 'succ') return $value + 0.1;
|
||||
|
||||
@@ -18,7 +18,7 @@ class che_수비 implements iActionTrigger{
|
||||
];
|
||||
|
||||
public function onCalcDomestic(string $turnType, string $varType, float $value):float{
|
||||
if($turnType == 'def'){
|
||||
if($turnType == '수비'){
|
||||
if($varType == 'score') return $value * 1.1;
|
||||
if($varType == 'cost') return $value * 0.8;
|
||||
if($varType == 'succ') return $value + 0.1;
|
||||
|
||||
@@ -18,7 +18,7 @@ class che_통찰 implements iActionTrigger{
|
||||
];
|
||||
|
||||
public function onCalcDomestic(string $turnType, string $varType, float $value):float{
|
||||
if($turnType == 'trust' || $turnType == 'pop'){
|
||||
if($turnType == '민심' || $turnType == '인구'){
|
||||
if($varType == 'score') return $value * 1.1;
|
||||
if($varType == 'cost') return $value * 0.8;
|
||||
if($varType == 'succ') return $value + 0.1;
|
||||
|
||||
@@ -18,7 +18,7 @@ class che_축성 implements iActionTrigger{
|
||||
];
|
||||
|
||||
public function onCalcDomestic(string $turnType, string $varType, float $value):float{
|
||||
if($turnType == 'wall'){
|
||||
if($turnType == '성벽'){
|
||||
if($varType == 'score') return $value * 1.1;
|
||||
if($varType == 'cost') return $value * 0.8;
|
||||
if($varType == 'succ') return $value + 0.1;
|
||||
|
||||
@@ -18,7 +18,7 @@ class che_통찰 implements iActionTrigger{
|
||||
];
|
||||
|
||||
public function onCalcDomestic(string $turnType, string $varType, float $value):float{
|
||||
if($turnType == 'secu'){
|
||||
if($turnType == '치안'){
|
||||
if($varType == 'score') return $value * 1.1;
|
||||
if($varType == 'cost') return $value * 0.8;
|
||||
if($varType == 'succ') return $value + 0.1;
|
||||
|
||||
Reference in New Issue
Block a user