From 575e03c0fc5587ef08a1b315de89563a126457c9 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 19 Feb 2022 23:54:03 +0900 Subject: [PATCH 01/25] =?UTF-8?q?refac:=20=EC=95=84=EC=9D=B4=ED=85=9C?= =?UTF-8?q?=EC=97=90=20=EB=AF=B8=EC=82=AC=EC=9A=A9=20$id=20=EA=B0=92=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/None.php | 1 - hwe/sammo/ActionItem/che_계략_삼략.php | 3 +-- hwe/sammo/ActionItem/che_계략_육도.php | 3 +-- hwe/sammo/ActionItem/che_계략_이추.php | 3 +-- hwe/sammo/ActionItem/che_계략_향낭.php | 3 +-- hwe/sammo/ActionItem/che_반계_백우선.php | 1 - hwe/sammo/ActionItem/che_반계_파초선.php | 1 - hwe/sammo/ActionItem/che_부적_태현청생부.php | 1 - hwe/sammo/ActionItem/che_사기_두강주.php | 1 - hwe/sammo/ActionItem/che_사기_보령압주.php | 1 - hwe/sammo/ActionItem/che_사기_의적주.php | 1 - hwe/sammo/ActionItem/che_사기_초선화.php | 1 - hwe/sammo/ActionItem/che_사기_춘화첩.php | 1 - hwe/sammo/ActionItem/che_사기_탁주.php | 1 - hwe/sammo/ActionItem/che_의술_상한잡병론.php | 3 +-- hwe/sammo/ActionItem/che_의술_청낭서.php | 3 +-- hwe/sammo/ActionItem/che_의술_태평청령.php | 3 +-- hwe/sammo/ActionItem/che_저격_매화수전.php | 1 - hwe/sammo/ActionItem/che_저격_비도.php | 1 - hwe/sammo/ActionItem/che_저격_수극.php | 1 - hwe/sammo/ActionItem/che_치료_도소연명.php | 1 - hwe/sammo/ActionItem/che_치료_무후행군.php | 1 - hwe/sammo/ActionItem/che_치료_오석산.php | 1 - hwe/sammo/ActionItem/che_치료_정력견혈.php | 1 - hwe/sammo/ActionItem/che_치료_칠엽청점.php | 1 - hwe/sammo/ActionItem/che_치료_환약.php | 1 - hwe/sammo/ActionItem/che_행동_서촉지형도.php | 1 - hwe/sammo/ActionItem/che_회피_둔갑천서.php | 1 - hwe/sammo/ActionItem/che_회피_태평요술.php | 1 - hwe/sammo/ActionItem/che_훈련_과실주.php | 1 - hwe/sammo/ActionItem/che_훈련_단결도.php | 1 - hwe/sammo/ActionItem/che_훈련_이강주.php | 1 - hwe/sammo/ActionItem/che_훈련_철벽서.php | 1 - hwe/sammo/ActionItem/che_훈련_청주.php | 1 - hwe/sammo/ActionItem/event_빼빼로.php | 1 - hwe/sammo/ActionItem/event_전투특기_격노.php | 1 - hwe/sammo/ActionItem/event_전투특기_견고.php | 1 - hwe/sammo/ActionItem/event_전투특기_공성.php | 3 +-- hwe/sammo/ActionItem/event_전투특기_궁병.php | 3 +-- hwe/sammo/ActionItem/event_전투특기_귀병.php | 3 +-- hwe/sammo/ActionItem/event_전투특기_기병.php | 3 +-- hwe/sammo/ActionItem/event_전투특기_돌격.php | 1 - hwe/sammo/ActionItem/event_전투특기_무쌍.php | 1 - hwe/sammo/ActionItem/event_전투특기_반계.php | 1 - hwe/sammo/ActionItem/event_전투특기_보병.php | 3 +-- hwe/sammo/ActionItem/event_전투특기_신산.php | 3 +-- hwe/sammo/ActionItem/event_전투특기_신중.php | 1 - hwe/sammo/ActionItem/event_전투특기_위압.php | 1 - hwe/sammo/ActionItem/event_전투특기_의술.php | 1 - hwe/sammo/ActionItem/event_전투특기_저격.php | 1 - hwe/sammo/ActionItem/event_전투특기_집중.php | 1 - hwe/sammo/ActionItem/event_전투특기_징병.php | 3 +-- hwe/sammo/ActionItem/event_전투특기_척사.php | 1 - hwe/sammo/ActionItem/event_전투특기_필살.php | 1 - hwe/sammo/ActionItem/event_전투특기_환술.php | 1 - hwe/sammo/BaseItem.php | 3 +-- 56 files changed, 15 insertions(+), 71 deletions(-) diff --git a/hwe/sammo/ActionItem/None.php b/hwe/sammo/ActionItem/None.php index bcb2578f..177fc1d4 100644 --- a/hwe/sammo/ActionItem/None.php +++ b/hwe/sammo/ActionItem/None.php @@ -5,7 +5,6 @@ use \sammo\General; class None extends \sammo\BaseItem{ - protected $id = 0; protected $name = '-'; protected $info = null; protected $cost = 0; diff --git a/hwe/sammo/ActionItem/che_계략_삼략.php b/hwe/sammo/ActionItem/che_계략_삼략.php index d119775a..9617db30 100644 --- a/hwe/sammo/ActionItem/che_계략_삼략.php +++ b/hwe/sammo/ActionItem/che_계략_삼략.php @@ -5,7 +5,6 @@ use \sammo\General; class che_계략_삼략 extends \sammo\BaseItem{ - protected $id = 22; protected $rawName = '삼략'; protected $name = '삼략(계략)'; protected $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p
[전투] 계략 시도 확률 +10%p, 계략 성공 확률 +10%p'; @@ -16,7 +15,7 @@ class che_계략_삼략 extends \sammo\BaseItem{ if($turnType == '계략'){ if($varType == 'success') return $value + 0.2; } - + return $value; } diff --git a/hwe/sammo/ActionItem/che_계략_육도.php b/hwe/sammo/ActionItem/che_계략_육도.php index f4f2726a..7915052d 100644 --- a/hwe/sammo/ActionItem/che_계략_육도.php +++ b/hwe/sammo/ActionItem/che_계략_육도.php @@ -5,7 +5,6 @@ use \sammo\General; class che_계략_육도 extends \sammo\BaseItem{ - protected $id = 21; protected $rawName = '육도'; protected $name = '육도(계략)'; protected $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p
[전투] 계략 시도 확률 +10%p, 계략 성공 확률 +10%p'; @@ -16,7 +15,7 @@ class che_계략_육도 extends \sammo\BaseItem{ if($turnType == '계략'){ if($varType == 'success') return $value + 0.2; } - + return $value; } diff --git a/hwe/sammo/ActionItem/che_계략_이추.php b/hwe/sammo/ActionItem/che_계략_이추.php index 68380391..f999e5a5 100644 --- a/hwe/sammo/ActionItem/che_계략_이추.php +++ b/hwe/sammo/ActionItem/che_계략_이추.php @@ -5,7 +5,6 @@ use \sammo\General; class che_계략_이추 extends \sammo\BaseItem{ - protected $id = 5; protected $rawName = '이추'; protected $name = '이추(계략)'; protected $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p'; @@ -18,7 +17,7 @@ class che_계략_이추 extends \sammo\BaseItem{ if($turnType == '계략'){ if($varType == 'success') return $value + 0.2; } - + return $value; } diff --git a/hwe/sammo/ActionItem/che_계략_향낭.php b/hwe/sammo/ActionItem/che_계략_향낭.php index 1a382bb5..6035226e 100644 --- a/hwe/sammo/ActionItem/che_계략_향낭.php +++ b/hwe/sammo/ActionItem/che_계략_향낭.php @@ -5,7 +5,6 @@ use \sammo\General; class che_계략_향낭 extends \sammo\BaseItem{ - protected $id = 5; protected $rawName = '항냥'; protected $name = '항냥(계략)'; protected $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +50%p'; @@ -18,7 +17,7 @@ class che_계략_향낭 extends \sammo\BaseItem{ if($turnType == '계략'){ if($varType == 'success') return $value + 0.5; } - + return $value; } diff --git a/hwe/sammo/ActionItem/che_반계_백우선.php b/hwe/sammo/ActionItem/che_반계_백우선.php index 850f9ede..ce9a4542 100644 --- a/hwe/sammo/ActionItem/che_반계_백우선.php +++ b/hwe/sammo/ActionItem/che_반계_백우선.php @@ -12,7 +12,6 @@ use \sammo\WarUnitTrigger\che_반계발동; class che_반계_백우선 extends \sammo\BaseItem{ - protected $id = 45; protected $rawName = '백우선'; protected $name = '백우선(반계)'; protected $info = '[전투] 상대의 계략 성공 확률 -10%p, 상대의 계략을 20% 확률로 되돌림'; diff --git a/hwe/sammo/ActionItem/che_반계_파초선.php b/hwe/sammo/ActionItem/che_반계_파초선.php index 5294714c..0b95351c 100644 --- a/hwe/sammo/ActionItem/che_반계_파초선.php +++ b/hwe/sammo/ActionItem/che_반계_파초선.php @@ -12,7 +12,6 @@ use \sammo\WarUnitTrigger\che_반계발동; class che_반계_파초선 extends \sammo\BaseItem{ - protected $id = 45; protected $rawName = '파초선'; protected $name = '파초선(반계)'; protected $info = '[전투] 상대의 계략 성공 확률 -10%p, 상대의 계략을 20% 확률로 되돌림'; diff --git a/hwe/sammo/ActionItem/che_부적_태현청생부.php b/hwe/sammo/ActionItem/che_부적_태현청생부.php index 1094880a..fd66bba7 100644 --- a/hwe/sammo/ActionItem/che_부적_태현청생부.php +++ b/hwe/sammo/ActionItem/che_부적_태현청생부.php @@ -15,7 +15,6 @@ use sammo\WarUnitTrigger\WarActivateSkills; class che_부적_태현청생부 extends \sammo\BaseItem { - protected $id = 9; protected $rawName = '태현청생부'; protected $name = '태현청생부(부적)'; protected $info = '[전투] 저격 불가, 부상 없음'; diff --git a/hwe/sammo/ActionItem/che_사기_두강주.php b/hwe/sammo/ActionItem/che_사기_두강주.php index 5038cda1..28093060 100644 --- a/hwe/sammo/ActionItem/che_사기_두강주.php +++ b/hwe/sammo/ActionItem/che_사기_두강주.php @@ -5,7 +5,6 @@ use \sammo\General; class che_사기_두강주 extends \sammo\BaseItem{ - protected $id = 15; protected $rawName = '두강주'; protected $name = '두강주(사기)'; protected $info = '[전투] 사기 보정 +10'; diff --git a/hwe/sammo/ActionItem/che_사기_보령압주.php b/hwe/sammo/ActionItem/che_사기_보령압주.php index 7179a02f..cc3101fe 100644 --- a/hwe/sammo/ActionItem/che_사기_보령압주.php +++ b/hwe/sammo/ActionItem/che_사기_보령압주.php @@ -5,7 +5,6 @@ use \sammo\General; class che_사기_보령압주 extends \sammo\BaseItem{ - protected $id = 16; protected $rawName = '보령압주'; protected $name = '보령압주(사기)'; protected $info = '[전투] 사기 보정 +10'; diff --git a/hwe/sammo/ActionItem/che_사기_의적주.php b/hwe/sammo/ActionItem/che_사기_의적주.php index 43896cc9..86f2a9db 100644 --- a/hwe/sammo/ActionItem/che_사기_의적주.php +++ b/hwe/sammo/ActionItem/che_사기_의적주.php @@ -5,7 +5,6 @@ use \sammo\General; class che_사기_의적주 extends \sammo\BaseItem{ - protected $id = 14; protected $rawName = '의적주'; protected $name = '의적주(사기)'; protected $info = '[전투] 사기 보정 +10'; diff --git a/hwe/sammo/ActionItem/che_사기_초선화.php b/hwe/sammo/ActionItem/che_사기_초선화.php index 6cbc604a..35b92058 100644 --- a/hwe/sammo/ActionItem/che_사기_초선화.php +++ b/hwe/sammo/ActionItem/che_사기_초선화.php @@ -5,7 +5,6 @@ use \sammo\General; class che_사기_초선화 extends \sammo\BaseItem{ - protected $id = 20; protected $rawName = '초선화'; protected $name = '초선화(사기)'; protected $info = '[전투] 사기 보정 +14'; diff --git a/hwe/sammo/ActionItem/che_사기_춘화첩.php b/hwe/sammo/ActionItem/che_사기_춘화첩.php index 96357223..f25580de 100644 --- a/hwe/sammo/ActionItem/che_사기_춘화첩.php +++ b/hwe/sammo/ActionItem/che_사기_춘화첩.php @@ -5,7 +5,6 @@ use \sammo\General; class che_사기_춘화첩 extends \sammo\BaseItem{ - protected $id = 19; protected $rawName = '춘화첩'; protected $name = '춘화첩(사기)'; protected $info = '[전투] 사기 보정 +14'; diff --git a/hwe/sammo/ActionItem/che_사기_탁주.php b/hwe/sammo/ActionItem/che_사기_탁주.php index a15c1c3a..d10e4959 100644 --- a/hwe/sammo/ActionItem/che_사기_탁주.php +++ b/hwe/sammo/ActionItem/che_사기_탁주.php @@ -9,7 +9,6 @@ use \sammo\WarUnitTrigger\능력치변경; class che_사기_탁주 extends \sammo\BaseItem{ - protected $id = 3; protected $rawName = '탁주'; protected $name = '탁주(사기)'; protected $info = '[전투] 사기 +6. 1회용'; diff --git a/hwe/sammo/ActionItem/che_의술_상한잡병론.php b/hwe/sammo/ActionItem/che_의술_상한잡병론.php index 060e3fc6..5d1f01f8 100644 --- a/hwe/sammo/ActionItem/che_의술_상한잡병론.php +++ b/hwe/sammo/ActionItem/che_의술_상한잡병론.php @@ -11,7 +11,6 @@ use sammo\WarUnitTrigger\che_전투치료시도; class che_의술_상한잡병론 extends \sammo\BaseItem{ - protected $id = 24; protected $rawName = '상한잡병론'; protected $name = '상한잡병론(의술)'; protected $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복
[전투] 페이즈마다 40% 확률로 치료 발동(아군 피해 1/3 감소, 부상 회복)'; @@ -29,7 +28,7 @@ class che_의술_상한잡병론 extends \sammo\BaseItem{ return new WarUnitTriggerCaller( new che_전투치료시도($unit, BaseWarUnitTrigger::TYPE_ITEM+BaseWarUnitTrigger::TYPE_DEDUP_TYPE_BASE*301), new che_전투치료발동($unit, BaseWarUnitTrigger::TYPE_ITEM) - + ); } } \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_의술_청낭서.php b/hwe/sammo/ActionItem/che_의술_청낭서.php index 40dab3fd..6034ee56 100644 --- a/hwe/sammo/ActionItem/che_의술_청낭서.php +++ b/hwe/sammo/ActionItem/che_의술_청낭서.php @@ -11,7 +11,6 @@ use sammo\WarUnitTriggerCaller; class che_의술_청낭서 extends \sammo\BaseItem{ - protected $id = 23; protected $rawName = '청낭서'; protected $name = '청낭서(의술)'; protected $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복
[전투] 페이즈마다 40% 확률로 치료 발동(아군 피해 1/3 감소, 부상 회복)'; @@ -29,7 +28,7 @@ class che_의술_청낭서 extends \sammo\BaseItem{ return new WarUnitTriggerCaller( new che_전투치료시도($unit, BaseWarUnitTrigger::TYPE_ITEM+BaseWarUnitTrigger::TYPE_DEDUP_TYPE_BASE*302), new che_전투치료발동($unit, BaseWarUnitTrigger::TYPE_ITEM) - + ); } } \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_의술_태평청령.php b/hwe/sammo/ActionItem/che_의술_태평청령.php index 875d536f..55abef16 100644 --- a/hwe/sammo/ActionItem/che_의술_태평청령.php +++ b/hwe/sammo/ActionItem/che_의술_태평청령.php @@ -11,7 +11,6 @@ use sammo\WarUnitTrigger\che_전투치료시도; class che_의술_태평청령 extends \sammo\BaseItem{ - protected $id = 24; protected $rawName = '태평청령'; protected $name = '태평청령(의술)'; protected $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복
[전투] 페이즈마다 40% 확률로 치료 발동(아군 피해 1/3 감소, 부상 회복)'; @@ -29,7 +28,7 @@ class che_의술_태평청령 extends \sammo\BaseItem{ return new WarUnitTriggerCaller( new che_전투치료시도($unit, BaseWarUnitTrigger::TYPE_ITEM+BaseWarUnitTrigger::TYPE_DEDUP_TYPE_BASE*303), new che_전투치료발동($unit, BaseWarUnitTrigger::TYPE_ITEM) - + ); } } \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_저격_매화수전.php b/hwe/sammo/ActionItem/che_저격_매화수전.php index a72e9c55..b0671002 100644 --- a/hwe/sammo/ActionItem/che_저격_매화수전.php +++ b/hwe/sammo/ActionItem/che_저격_매화수전.php @@ -12,7 +12,6 @@ use \sammo\WarUnitTrigger\che_저격발동; class che_저격_매화수전 extends \sammo\BaseItem{ - protected $id = 70; protected $rawName = '매화수전'; protected $name = '매화수전(저격)'; protected $info = '[전투] 새로운 상대와 전투 시 50% 확률로 저격 발동, 성공 시 사기+20'; diff --git a/hwe/sammo/ActionItem/che_저격_비도.php b/hwe/sammo/ActionItem/che_저격_비도.php index 5ab2c493..d9bf9509 100644 --- a/hwe/sammo/ActionItem/che_저격_비도.php +++ b/hwe/sammo/ActionItem/che_저격_비도.php @@ -12,7 +12,6 @@ use \sammo\WarUnitTrigger\che_저격발동; class che_저격_비도 extends \sammo\BaseItem{ - protected $id = 70; protected $rawName = '비도'; protected $name = '비도(저격)'; protected $info = '[전투] 새로운 상대와 전투 시 50% 확률로 저격 발동, 성공 시 사기+20'; diff --git a/hwe/sammo/ActionItem/che_저격_수극.php b/hwe/sammo/ActionItem/che_저격_수극.php index 9a31fc5a..7fe46fc9 100644 --- a/hwe/sammo/ActionItem/che_저격_수극.php +++ b/hwe/sammo/ActionItem/che_저격_수극.php @@ -10,7 +10,6 @@ use \sammo\BaseWarUnitTrigger; class che_저격_수극 extends \sammo\BaseItem{ - protected $id = 2; protected $rawName = '수극'; protected $name = '수극(저격)'; protected $info = '[전투] 전투 개시 전 50% 확률로 저격 시도. 1회용'; diff --git a/hwe/sammo/ActionItem/che_치료_도소연명.php b/hwe/sammo/ActionItem/che_치료_도소연명.php index dc9138e4..eec9e54e 100644 --- a/hwe/sammo/ActionItem/che_치료_도소연명.php +++ b/hwe/sammo/ActionItem/che_치료_도소연명.php @@ -7,7 +7,6 @@ use \sammo\GeneralTriggerCaller; class che_치료_도소연명 extends \sammo\BaseItem{ - protected $id = 9; protected $rawName = '도소연명'; protected $name = '도소연명(치료)'; protected $info = '[군사] 턴 실행 전 부상 회복.'; diff --git a/hwe/sammo/ActionItem/che_치료_무후행군.php b/hwe/sammo/ActionItem/che_치료_무후행군.php index e5c2f922..8dc781e9 100644 --- a/hwe/sammo/ActionItem/che_치료_무후행군.php +++ b/hwe/sammo/ActionItem/che_치료_무후행군.php @@ -7,7 +7,6 @@ use \sammo\GeneralTriggerCaller; class che_치료_무후행군 extends \sammo\BaseItem{ - protected $id = 8; protected $rawName = '무후행군'; protected $name = '무후행군(치료)'; protected $info = '[군사] 턴 실행 전 부상 회복.'; diff --git a/hwe/sammo/ActionItem/che_치료_오석산.php b/hwe/sammo/ActionItem/che_치료_오석산.php index 561c941b..df8fa889 100644 --- a/hwe/sammo/ActionItem/che_치료_오석산.php +++ b/hwe/sammo/ActionItem/che_치료_오석산.php @@ -7,7 +7,6 @@ use \sammo\GeneralTriggerCaller; class che_치료_오석산 extends \sammo\BaseItem{ - protected $id = 7; protected $rawName = '오석산'; protected $name = '오석산(치료)'; protected $info = '[군사] 턴 실행 전 부상 회복.'; diff --git a/hwe/sammo/ActionItem/che_치료_정력견혈.php b/hwe/sammo/ActionItem/che_치료_정력견혈.php index cb66fe7b..79eaa7a3 100644 --- a/hwe/sammo/ActionItem/che_치료_정력견혈.php +++ b/hwe/sammo/ActionItem/che_치료_정력견혈.php @@ -7,7 +7,6 @@ use \sammo\GeneralTriggerCaller; class che_치료_정력견혈 extends \sammo\BaseItem{ - protected $id = 11; protected $rawName = '정력견혈'; protected $name = '정력견혈(치료)'; protected $info = '[군사] 턴 실행 전 부상 회복.'; diff --git a/hwe/sammo/ActionItem/che_치료_칠엽청점.php b/hwe/sammo/ActionItem/che_치료_칠엽청점.php index 23225735..99d6f20f 100644 --- a/hwe/sammo/ActionItem/che_치료_칠엽청점.php +++ b/hwe/sammo/ActionItem/che_치료_칠엽청점.php @@ -7,7 +7,6 @@ use \sammo\GeneralTriggerCaller; class che_치료_칠엽청점 extends \sammo\BaseItem{ - protected $id = 10; protected $rawName = '칠엽청점'; protected $name = '칠엽청점(치료)'; protected $info = '[군사] 턴 실행 전 부상 회복.'; diff --git a/hwe/sammo/ActionItem/che_치료_환약.php b/hwe/sammo/ActionItem/che_치료_환약.php index 30bd692e..39f5d5e5 100644 --- a/hwe/sammo/ActionItem/che_치료_환약.php +++ b/hwe/sammo/ActionItem/che_치료_환약.php @@ -7,7 +7,6 @@ use \sammo\GeneralTriggerCaller; class che_치료_환약 extends \sammo\BaseItem{ - protected $id = 1; protected $rawName = '환약'; protected $name = '환약(치료)'; protected $info = '[군사] 턴 실행 전 부상 회복. 1회용'; diff --git a/hwe/sammo/ActionItem/che_행동_서촉지형도.php b/hwe/sammo/ActionItem/che_행동_서촉지형도.php index bce22a82..e5e7f3a3 100644 --- a/hwe/sammo/ActionItem/che_행동_서촉지형도.php +++ b/hwe/sammo/ActionItem/che_행동_서촉지형도.php @@ -5,7 +5,6 @@ use \sammo\General; class che_행동_서촉지형도 extends \sammo\BaseItem{ - protected $id = 22; protected $rawName = '서촉지형도'; protected $name = '서촉지형도(행동)'; protected $info = '[전투] 공격 시 페이즈 + 2'; diff --git a/hwe/sammo/ActionItem/che_회피_둔갑천서.php b/hwe/sammo/ActionItem/che_회피_둔갑천서.php index e158ee06..22cca129 100644 --- a/hwe/sammo/ActionItem/che_회피_둔갑천서.php +++ b/hwe/sammo/ActionItem/che_회피_둔갑천서.php @@ -5,7 +5,6 @@ use \sammo\General; class che_회피_둔갑천서 extends \sammo\BaseItem{ - protected $id = 26; protected $rawName = '둔갑천서'; protected $name = '둔갑천서(회피)'; protected $info = '[전투] 회피 확률 +20%p'; diff --git a/hwe/sammo/ActionItem/che_회피_태평요술.php b/hwe/sammo/ActionItem/che_회피_태평요술.php index 3a89d06c..70b5926e 100644 --- a/hwe/sammo/ActionItem/che_회피_태평요술.php +++ b/hwe/sammo/ActionItem/che_회피_태평요술.php @@ -5,7 +5,6 @@ use \sammo\General; class che_회피_태평요술 extends \sammo\BaseItem{ - protected $id = 25; protected $rawName = '태평요술'; protected $name = '태평요술(회피)'; protected $info = '[전투] 회피 확률 +20%p'; diff --git a/hwe/sammo/ActionItem/che_훈련_과실주.php b/hwe/sammo/ActionItem/che_훈련_과실주.php index 59ee5e36..7bc55f0e 100644 --- a/hwe/sammo/ActionItem/che_훈련_과실주.php +++ b/hwe/sammo/ActionItem/che_훈련_과실주.php @@ -5,7 +5,6 @@ use \sammo\General; class che_훈련_과실주 extends \sammo\BaseItem{ - protected $id = 12; protected $rawName = '과실주'; protected $name = '과실주(훈련)'; protected $info = '[전투] 훈련 보정 +10'; diff --git a/hwe/sammo/ActionItem/che_훈련_단결도.php b/hwe/sammo/ActionItem/che_훈련_단결도.php index a7f117a1..3c3a74f2 100644 --- a/hwe/sammo/ActionItem/che_훈련_단결도.php +++ b/hwe/sammo/ActionItem/che_훈련_단결도.php @@ -5,7 +5,6 @@ use \sammo\General; class che_훈련_단결도 extends \sammo\BaseItem{ - protected $id = 18; protected $rawName = '단결도'; protected $name = '단결도(훈련)'; protected $info = '[전투] 훈련 보정 +14'; diff --git a/hwe/sammo/ActionItem/che_훈련_이강주.php b/hwe/sammo/ActionItem/che_훈련_이강주.php index bc2425f9..a8593c6a 100644 --- a/hwe/sammo/ActionItem/che_훈련_이강주.php +++ b/hwe/sammo/ActionItem/che_훈련_이강주.php @@ -5,7 +5,6 @@ use \sammo\General; class che_훈련_이강주 extends \sammo\BaseItem{ - protected $id = 13; protected $rawName = '이강주'; protected $name = '이강주(훈련)'; protected $info = '[전투] 훈련 보정 +10'; diff --git a/hwe/sammo/ActionItem/che_훈련_철벽서.php b/hwe/sammo/ActionItem/che_훈련_철벽서.php index e2ef2d65..021cb8ed 100644 --- a/hwe/sammo/ActionItem/che_훈련_철벽서.php +++ b/hwe/sammo/ActionItem/che_훈련_철벽서.php @@ -5,7 +5,6 @@ use \sammo\General; class che_훈련_철벽서 extends \sammo\BaseItem{ - protected $id = 17; protected $rawName = '철벽서'; protected $name = '철벽서(훈련)'; protected $info = '[전투] 훈련 보정 +14'; diff --git a/hwe/sammo/ActionItem/che_훈련_청주.php b/hwe/sammo/ActionItem/che_훈련_청주.php index f97fb8b4..47e4e15a 100644 --- a/hwe/sammo/ActionItem/che_훈련_청주.php +++ b/hwe/sammo/ActionItem/che_훈련_청주.php @@ -9,7 +9,6 @@ use \sammo\WarUnitTrigger\능력치변경; class che_훈련_청주 extends \sammo\BaseItem{ - protected $id = 4; protected $rawName = '청주'; protected $name = '청주(훈련)'; protected $info = '[전투] 훈련 +6. 1회용'; diff --git a/hwe/sammo/ActionItem/event_빼빼로.php b/hwe/sammo/ActionItem/event_빼빼로.php index 37f2dd20..79389bf3 100644 --- a/hwe/sammo/ActionItem/event_빼빼로.php +++ b/hwe/sammo/ActionItem/event_빼빼로.php @@ -10,7 +10,6 @@ use sammo\WarUnitTrigger\che_격노발동; class event_빼빼로 extends \sammo\BaseItem{ - protected $id = 75; protected $rawName = '빼빼로'; protected $name = '빼빼로'; protected $info = '1의 상징입니다.
통솔 +1, 무력 +1, 지력 +1'; diff --git a/hwe/sammo/ActionItem/event_전투특기_격노.php b/hwe/sammo/ActionItem/event_전투특기_격노.php index 26fd8d14..aa5db3b2 100644 --- a/hwe/sammo/ActionItem/event_전투특기_격노.php +++ b/hwe/sammo/ActionItem/event_전투특기_격노.php @@ -10,7 +10,6 @@ use sammo\WarUnitTrigger\che_격노발동; class event_전투특기_격노 extends \sammo\BaseItem{ - protected $id = 74; protected $rawName = '비급'; protected $name = '비급(격노)'; protected $info = '[전투] 상대방 필살 시 격노(필살) 발동, 회피 시도시 25% 확률로 격노 발동, 공격 시 일정 확률로 진노(1페이즈 추가)'; diff --git a/hwe/sammo/ActionItem/event_전투특기_견고.php b/hwe/sammo/ActionItem/event_전투특기_견고.php index 71e0a009..143cb5e0 100644 --- a/hwe/sammo/ActionItem/event_전투특기_견고.php +++ b/hwe/sammo/ActionItem/event_전투특기_견고.php @@ -9,7 +9,6 @@ use sammo\WarUnitTriggerCaller; class event_전투특기_견고 extends \sammo\BaseItem{ - protected $id = 74; protected $rawName = '비급'; protected $name = '비급(견고)'; protected $info = '[전투] 상대 필살 확률 -20%p, 상대 계략 시도시 성공 확률 -10%p, 부상 없음, 아군 피해 -10%'; diff --git a/hwe/sammo/ActionItem/event_전투특기_공성.php b/hwe/sammo/ActionItem/event_전투특기_공성.php index fc30fcb0..a26a47e2 100644 --- a/hwe/sammo/ActionItem/event_전투특기_공성.php +++ b/hwe/sammo/ActionItem/event_전투특기_공성.php @@ -9,7 +9,6 @@ use \sammo\WarUnitCity; class event_전투특기_공성 extends \sammo\BaseItem{ - protected $id = 53; protected $rawName = '비급'; protected $name = '비급(공성)'; protected $info = '[군사] 차병 계통 징·모병비 -10%
[전투] 성벽 공격 시 대미지 +100%,
공격시 상대 병종에/수비시 자신 병종 숙련에 차병 숙련을 가산'; @@ -22,7 +21,7 @@ class event_전투특기_공성 extends \sammo\BaseItem{ if(in_array($turnType, ['징병', '모병'])){ if($varType == 'cost' && $aux['armType'] == GameUnitConst::T_SIEGE) return $value * 0.9; } - + return $value; } diff --git a/hwe/sammo/ActionItem/event_전투특기_궁병.php b/hwe/sammo/ActionItem/event_전투특기_궁병.php index 182c5212..81381a69 100644 --- a/hwe/sammo/ActionItem/event_전투특기_궁병.php +++ b/hwe/sammo/ActionItem/event_전투특기_궁병.php @@ -8,7 +8,6 @@ use \sammo\GameUnitConst; class event_전투특기_궁병 extends \sammo\BaseItem{ - protected $id = 51; protected $rawName = '비급'; protected $name = '비급(궁병)'; protected $info = '[군사] 궁병 계통 징·모병비 -10%
[전투] 회피 확률 +20%p,
공격시 상대 병종에/수비시 자신 병종 숙련에 궁병 숙련을 가산'; @@ -21,7 +20,7 @@ class event_전투특기_궁병 extends \sammo\BaseItem{ if(in_array($turnType, ['징병', '모병'])){ if($varType == 'cost' && $aux['armType'] == GameUnitConst::T_ARCHER) return $value * 0.9; } - + return $value; } diff --git a/hwe/sammo/ActionItem/event_전투특기_귀병.php b/hwe/sammo/ActionItem/event_전투특기_귀병.php index 3bcc2201..e11ea251 100644 --- a/hwe/sammo/ActionItem/event_전투특기_귀병.php +++ b/hwe/sammo/ActionItem/event_전투특기_귀병.php @@ -8,7 +8,6 @@ use \sammo\WarUnit; class event_전투특기_귀병 extends \sammo\BaseItem{ - protected $id = 40; protected $rawName = '비급'; protected $name = '비급(귀병)'; protected $info = '[군사] 귀병 계통 징·모병비 -10%
[전투] 계략 성공 확률 +20%p,
공격시 상대 병종에/수비시 자신 병종 숙련에 귀병 숙련을 가산'; @@ -21,7 +20,7 @@ class event_전투특기_귀병 extends \sammo\BaseItem{ if(in_array($turnType, ['징병', '모병'])){ if($varType == 'cost' && $aux['armType'] == GameUnitConst::T_WIZARD) return $value * 0.9; } - + return $value; } diff --git a/hwe/sammo/ActionItem/event_전투특기_기병.php b/hwe/sammo/ActionItem/event_전투특기_기병.php index 36a163b4..e19ad59b 100644 --- a/hwe/sammo/ActionItem/event_전투특기_기병.php +++ b/hwe/sammo/ActionItem/event_전투특기_기병.php @@ -8,7 +8,6 @@ use \sammo\WarUnit; class event_전투특기_기병 extends \sammo\BaseItem{ - protected $id = 52; protected $rawName = '비급'; protected $name = '비급(기병)'; protected $info = '[군사] 기병 계통 징·모병비 -10%
[전투] 수비 시 대미지 +10%, 공격 시 대미지 +20%,
공격시 상대 병종에/수비시 자신 병종 숙련에 기병 숙련을 가산'; @@ -21,7 +20,7 @@ class event_전투특기_기병 extends \sammo\BaseItem{ if(in_array($turnType, ['징병', '모병'])){ if($varType == 'cost' && $aux['armType'] == GameUnitConst::T_CAVALRY) return $value * 0.9; } - + return $value; } diff --git a/hwe/sammo/ActionItem/event_전투특기_돌격.php b/hwe/sammo/ActionItem/event_전투특기_돌격.php index 6a1b8401..dd858663 100644 --- a/hwe/sammo/ActionItem/event_전투특기_돌격.php +++ b/hwe/sammo/ActionItem/event_전투특기_돌격.php @@ -11,7 +11,6 @@ use \sammo\WarUnitTrigger\che_돌격지속; class event_전투특기_돌격 extends \sammo\BaseItem{ - protected $id = 60; protected $rawName = '비급'; protected $name = '비급(돌격)'; protected $info = '[전투] 공격 시 대등/유리한 병종에게는 퇴각 전까지 전투, 공격 시 페이즈 + 2, 공격 시 대미지 +5%'; diff --git a/hwe/sammo/ActionItem/event_전투특기_무쌍.php b/hwe/sammo/ActionItem/event_전투특기_무쌍.php index 6d53e9f9..02524aa3 100644 --- a/hwe/sammo/ActionItem/event_전투특기_무쌍.php +++ b/hwe/sammo/ActionItem/event_전투특기_무쌍.php @@ -8,7 +8,6 @@ use \sammo\Util; class event_전투특기_무쌍 extends \sammo\BaseItem{ - protected $id = 61; protected $rawName = '비급'; protected $name = '비급(무쌍)'; protected $info = '[전투] 대미지 +5%, 피해 -2%, 공격 시 필살 확률 +10%p,
승리 수의 로그 비례로 대미지 상승(10회 ⇒ +5%, 40회 ⇒ +15%)
승리 수의 로그 비례로 피해 감소(10회 ⇒ -2%, 40회 ⇒ -6%)'; diff --git a/hwe/sammo/ActionItem/event_전투특기_반계.php b/hwe/sammo/ActionItem/event_전투특기_반계.php index 23fb5faf..30e2bd4f 100644 --- a/hwe/sammo/ActionItem/event_전투특기_반계.php +++ b/hwe/sammo/ActionItem/event_전투특기_반계.php @@ -12,7 +12,6 @@ use \sammo\WarUnitTrigger\che_반계발동; class event_전투특기_반계 extends \sammo\BaseItem{ - protected $id = 45; protected $rawName = '비급'; protected $name = '비급(반계)'; protected $info = '[전투] 상대의 계략 성공 확률 -10%p, 상대의 계략을 40% 확률로 되돌림, 반목 성공시 대미지 추가(+60% → +150%)'; diff --git a/hwe/sammo/ActionItem/event_전투특기_보병.php b/hwe/sammo/ActionItem/event_전투특기_보병.php index d38e7e51..36af41ad 100644 --- a/hwe/sammo/ActionItem/event_전투특기_보병.php +++ b/hwe/sammo/ActionItem/event_전투특기_보병.php @@ -8,7 +8,6 @@ use \sammo\WarUnit; class event_전투특기_보병 extends \sammo\BaseItem{ - protected $id = 50; protected $rawName = '비급'; protected $name = '비급(보병)'; protected $info = '[군사] 보병 계통 징·모병비 -10%
[전투] 공격 시 아군 피해 -10%, 수비 시 아군 피해 -20%,
공격시 상대 병종에/수비시 자신 병종 숙련에 보병 숙련을 가산'; @@ -22,7 +21,7 @@ class event_전투특기_보병 extends \sammo\BaseItem{ if(in_array($turnType, ['징병', '모병'])){ if($varType == 'cost' && $aux['armType'] == GameUnitConst::T_FOOTMAN) return $value * 0.9; } - + return $value; } diff --git a/hwe/sammo/ActionItem/event_전투특기_신산.php b/hwe/sammo/ActionItem/event_전투특기_신산.php index d0fecdfa..e782e9cc 100644 --- a/hwe/sammo/ActionItem/event_전투특기_신산.php +++ b/hwe/sammo/ActionItem/event_전투특기_신산.php @@ -7,7 +7,6 @@ use \sammo\WarUnit; class event_전투특기_신산 extends \sammo\BaseItem{ - protected $id = 41; protected $rawName = '비급'; protected $name = '비급(신산)'; protected $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +10%p
[전투] 계략 시도 확률 +20%p, 계략 성공 확률 +20%p'; @@ -20,7 +19,7 @@ class event_전투특기_신산 extends \sammo\BaseItem{ if($turnType == '계략'){ if($varType == 'success') return $value + 0.1; } - + return $value; } diff --git a/hwe/sammo/ActionItem/event_전투특기_신중.php b/hwe/sammo/ActionItem/event_전투특기_신중.php index 32f35244..2c678932 100644 --- a/hwe/sammo/ActionItem/event_전투특기_신중.php +++ b/hwe/sammo/ActionItem/event_전투특기_신중.php @@ -7,7 +7,6 @@ use \sammo\WarUnit; class event_전투특기_신중 extends \sammo\BaseItem{ - protected $id = 44; protected $rawName = '비급'; protected $name = '비급(신중)'; protected $info = '[전투] 계략 성공 확률 100%'; diff --git a/hwe/sammo/ActionItem/event_전투특기_위압.php b/hwe/sammo/ActionItem/event_전투특기_위압.php index 3c17cf42..3c056660 100644 --- a/hwe/sammo/ActionItem/event_전투특기_위압.php +++ b/hwe/sammo/ActionItem/event_전투특기_위압.php @@ -10,7 +10,6 @@ use \sammo\WarUnitTrigger\che_위압발동; class event_전투특기_위압 extends \sammo\BaseItem{ - protected $id = 63; protected $rawName = '비급'; protected $name = '비급(위압)'; protected $info = '[전투] 첫 페이즈 위압 발동(적 공격, 회피 불가, 사기 5 감소)'; diff --git a/hwe/sammo/ActionItem/event_전투특기_의술.php b/hwe/sammo/ActionItem/event_전투특기_의술.php index 654c08cd..0b87382e 100644 --- a/hwe/sammo/ActionItem/event_전투특기_의술.php +++ b/hwe/sammo/ActionItem/event_전투특기_의술.php @@ -13,7 +13,6 @@ use sammo\WarUnitTriggerCaller; class event_전투특기_의술 extends \sammo\BaseItem{ - protected $id = 73; protected $rawName = '비급'; protected $name = '비급(의술)'; protected $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복
[전투] 페이즈마다 40% 확률로 치료 발동(아군 피해 1/3 감소, 부상 회복)'; diff --git a/hwe/sammo/ActionItem/event_전투특기_저격.php b/hwe/sammo/ActionItem/event_전투특기_저격.php index 223f7a5f..dd02abb8 100644 --- a/hwe/sammo/ActionItem/event_전투특기_저격.php +++ b/hwe/sammo/ActionItem/event_전투특기_저격.php @@ -10,7 +10,6 @@ use \sammo\WarUnitTrigger\che_저격발동; class event_전투특기_저격 extends \sammo\BaseItem{ - protected $id = 70; protected $rawName = '비급'; protected $name = '비급(저격)'; protected $info = '[전투] 새로운 상대와 전투 시 50% 확률로 저격 발동, 성공 시 사기+20'; diff --git a/hwe/sammo/ActionItem/event_전투특기_집중.php b/hwe/sammo/ActionItem/event_전투특기_집중.php index a0a0d344..5b0c9b1a 100644 --- a/hwe/sammo/ActionItem/event_전투특기_집중.php +++ b/hwe/sammo/ActionItem/event_전투특기_집중.php @@ -7,7 +7,6 @@ use \sammo\WarUnit; class event_전투특기_집중 extends \sammo\BaseItem{ - protected $id = 43; protected $rawName = '비급'; protected $name = '비급(집중)'; protected $info = '[전투] 계략 성공 시 대미지 +50%'; diff --git a/hwe/sammo/ActionItem/event_전투특기_징병.php b/hwe/sammo/ActionItem/event_전투특기_징병.php index c253a5b0..1e35b396 100644 --- a/hwe/sammo/ActionItem/event_전투특기_징병.php +++ b/hwe/sammo/ActionItem/event_전투특기_징병.php @@ -7,7 +7,6 @@ use \sammo\WarUnit; class event_전투특기_징병 extends \sammo\BaseItem{ - protected $id = 72; protected $rawName = '비급'; protected $name = '비급(징병)'; protected $info = '[군사] 징·모병비 -50%, 통솔 순수 능력치 보정 +15%'; @@ -20,7 +19,7 @@ class event_전투특기_징병 extends \sammo\BaseItem{ if(in_array($turnType, ['징병', '모병'])){ if($varType == 'cost') return $value * 0.5; } - + return $value; } diff --git a/hwe/sammo/ActionItem/event_전투특기_척사.php b/hwe/sammo/ActionItem/event_전투특기_척사.php index f8bed76e..bdae2626 100644 --- a/hwe/sammo/ActionItem/event_전투특기_척사.php +++ b/hwe/sammo/ActionItem/event_전투특기_척사.php @@ -7,7 +7,6 @@ use \sammo\WarUnit; class event_전투특기_척사 extends \sammo\BaseItem{ - protected $id = 75; protected $rawName = '비급'; protected $name = '비급(척사)'; protected $info = '[전투] 지역·도시 병종 상대로 대미지 +20%, 아군 피해 -20%'; diff --git a/hwe/sammo/ActionItem/event_전투특기_필살.php b/hwe/sammo/ActionItem/event_전투특기_필살.php index 5efa89f5..a606819a 100644 --- a/hwe/sammo/ActionItem/event_전투특기_필살.php +++ b/hwe/sammo/ActionItem/event_전투특기_필살.php @@ -9,7 +9,6 @@ use sammo\WarUnitTrigger\che_필살강화_회피불가; class event_전투특기_필살 extends \sammo\BaseItem{ - protected $id = 71; protected $rawName = '비급'; protected $name = '비급(필살)'; protected $info = '[전투] 필살 확률 +30%p, 필살 발동시 대상 회피 불가'; diff --git a/hwe/sammo/ActionItem/event_전투특기_환술.php b/hwe/sammo/ActionItem/event_전투특기_환술.php index 4f37fe3c..42b50b56 100644 --- a/hwe/sammo/ActionItem/event_전투특기_환술.php +++ b/hwe/sammo/ActionItem/event_전투특기_환술.php @@ -7,7 +7,6 @@ use \sammo\WarUnit; class event_전투특기_환술 extends \sammo\BaseItem{ - protected $id = 42; protected $rawName = '비급'; protected $name = '비급(환술)'; protected $info = '[전투] 계략 성공 확률 +10%p, 계략 성공 시 대미지 +30%'; diff --git a/hwe/sammo/BaseItem.php b/hwe/sammo/BaseItem.php index 1b73d684..a8a9061f 100644 --- a/hwe/sammo/BaseItem.php +++ b/hwe/sammo/BaseItem.php @@ -7,7 +7,6 @@ use \sammo\General; class BaseItem implements iAction{ use \sammo\DefaultAction; - protected $id = 0; protected $rawName = '-'; protected $name = '-'; protected $info = ''; @@ -30,7 +29,7 @@ class BaseItem implements iAction{ } return static::class; } - + function getCost(){ return $this->cost; } -- 2.54.0 From 4e97c6f7a2dbb070d6eec01d25890d93627b4cbe Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 03:04:45 +0900 Subject: [PATCH 02/25] =?UTF-8?q?game:=20=EC=82=AC=EA=B8=B0,=20=ED=9B=88?= =?UTF-8?q?=EB=A0=A8=20=EC=9C=A0=EB=8B=88=ED=81=AC=20=EC=88=98=EC=B9=98=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_사기_초선화.php | 4 ++-- hwe/sammo/ActionItem/che_사기_춘화첩.php | 4 ++-- hwe/sammo/ActionItem/che_훈련_단결도.php | 4 ++-- hwe/sammo/ActionItem/che_훈련_철벽서.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hwe/sammo/ActionItem/che_사기_초선화.php b/hwe/sammo/ActionItem/che_사기_초선화.php index 35b92058..f18736d4 100644 --- a/hwe/sammo/ActionItem/che_사기_초선화.php +++ b/hwe/sammo/ActionItem/che_사기_초선화.php @@ -7,13 +7,13 @@ class che_사기_초선화 extends \sammo\BaseItem{ protected $rawName = '초선화'; protected $name = '초선화(사기)'; - protected $info = '[전투] 사기 보정 +14'; + protected $info = '[전투] 사기 보정 +15'; protected $cost = 200; protected $consumable = false; public function onCalcStat(General $general, string $statName, $value, $aux=null){ if($statName === 'bonusAtmos'){ - return $value + 14; + return $value + 15; } return $value; } diff --git a/hwe/sammo/ActionItem/che_사기_춘화첩.php b/hwe/sammo/ActionItem/che_사기_춘화첩.php index f25580de..e01421a5 100644 --- a/hwe/sammo/ActionItem/che_사기_춘화첩.php +++ b/hwe/sammo/ActionItem/che_사기_춘화첩.php @@ -7,13 +7,13 @@ class che_사기_춘화첩 extends \sammo\BaseItem{ protected $rawName = '춘화첩'; protected $name = '춘화첩(사기)'; - protected $info = '[전투] 사기 보정 +14'; + protected $info = '[전투] 사기 보정 +15'; protected $cost = 200; protected $consumable = false; public function onCalcStat(General $general, string $statName, $value, $aux=null){ if($statName === 'bonusAtmos'){ - return $value + 14; + return $value + 15; } return $value; } diff --git a/hwe/sammo/ActionItem/che_훈련_단결도.php b/hwe/sammo/ActionItem/che_훈련_단결도.php index 3c3a74f2..f422e3c3 100644 --- a/hwe/sammo/ActionItem/che_훈련_단결도.php +++ b/hwe/sammo/ActionItem/che_훈련_단결도.php @@ -7,13 +7,13 @@ class che_훈련_단결도 extends \sammo\BaseItem{ protected $rawName = '단결도'; protected $name = '단결도(훈련)'; - protected $info = '[전투] 훈련 보정 +14'; + protected $info = '[전투] 훈련 보정 +15'; protected $cost = 200; protected $consumable = false; public function onCalcStat(General $general, string $statName, $value, $aux=null){ if($statName === 'bonusTrain'){ - return $value + 14; + return $value + 15; } return $value; } diff --git a/hwe/sammo/ActionItem/che_훈련_철벽서.php b/hwe/sammo/ActionItem/che_훈련_철벽서.php index 021cb8ed..aa93e690 100644 --- a/hwe/sammo/ActionItem/che_훈련_철벽서.php +++ b/hwe/sammo/ActionItem/che_훈련_철벽서.php @@ -7,13 +7,13 @@ class che_훈련_철벽서 extends \sammo\BaseItem{ protected $rawName = '철벽서'; protected $name = '철벽서(훈련)'; - protected $info = '[전투] 훈련 보정 +14'; + protected $info = '[전투] 훈련 보정 +15'; protected $cost = 200; protected $consumable = false; public function onCalcStat(General $general, string $statName, $value, $aux=null){ if($statName === 'bonusTrain'){ - return $value + 14; + return $value + 15; } return $value; } -- 2.54.0 From 90b51d5a21daf81e4ef583494260ae3c56df3313 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 03:08:24 +0900 Subject: [PATCH 03/25] =?UTF-8?q?game,feat:=20=EC=A0=84=ED=88=AC=EB=A0=A5?= =?UTF-8?q?=EB=B3=B4=EC=A0=95=20=EA=B4=80=EB=A0=A8=20=EC=9C=A0=EB=8B=88?= =?UTF-8?q?=ED=81=AC=20=EB=8F=84=EA=B5=AC=20=EC=B6=94=EA=B0=80=20-=20?= =?UTF-8?q?=EC=A7=81=EC=A0=91=20=EC=A0=84=ED=88=AC=EB=A0=A5=EB=B3=B4?= =?UTF-8?q?=EC=A0=95=EC=9D=84=20=EC=9C=84=ED=95=9C=20WarUnitTrigger=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_광기_상편.php | 31 ++++++++++++++++++++ hwe/sammo/ActionItem/che_상성보정_과실주.php | 31 ++++++++++++++++++++ hwe/sammo/ActionItem/che_훈련_과실주.php | 4 ++- hwe/sammo/WarUnitTrigger/전투력보정.php | 24 +++++++++++++++ 4 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 hwe/sammo/ActionItem/che_광기_상편.php create mode 100644 hwe/sammo/ActionItem/che_상성보정_과실주.php create mode 100644 hwe/sammo/WarUnitTrigger/전투력보정.php diff --git a/hwe/sammo/ActionItem/che_광기_상편.php b/hwe/sammo/ActionItem/che_광기_상편.php new file mode 100644 index 00000000..3e48cd4c --- /dev/null +++ b/hwe/sammo/ActionItem/che_광기_상편.php @@ -0,0 +1,31 @@ +getGeneral()->getLeadership(); + $crew = $unit->getGeneral()->getVar('crew'); + + $crewRatio = Util::valueFit($crew / ($leadership * 100), 0, 1); + return new WarUnitTriggerCaller( + new 전투력보정(1 + 0.5 * (1 - $crewRatio)) + ); + } +} diff --git a/hwe/sammo/ActionItem/che_상성보정_과실주.php b/hwe/sammo/ActionItem/che_상성보정_과실주.php new file mode 100644 index 00000000..da416aad --- /dev/null +++ b/hwe/sammo/ActionItem/che_상성보정_과실주.php @@ -0,0 +1,31 @@ +getOppose(); + if($oppose === null){ + return null; + } + $attackCoef = $unit->getCrewType()->getAttackCoef($oppose->getCrewType()); + if($attackCoef <= 1){ + return null; + } + return new WarUnitTriggerCaller( + new 전투력보정(1.1, 0.9) + ); + } +} diff --git a/hwe/sammo/ActionItem/che_훈련_과실주.php b/hwe/sammo/ActionItem/che_훈련_과실주.php index 7bc55f0e..c45ba90b 100644 --- a/hwe/sammo/ActionItem/che_훈련_과실주.php +++ b/hwe/sammo/ActionItem/che_훈련_과실주.php @@ -17,4 +17,6 @@ class che_훈련_과실주 extends \sammo\BaseItem{ } return $value; } -} \ No newline at end of file +} + +//NOTE: 구버전 \ No newline at end of file diff --git a/hwe/sammo/WarUnitTrigger/전투력보정.php b/hwe/sammo/WarUnitTrigger/전투력보정.php new file mode 100644 index 00000000..b40a85fe --- /dev/null +++ b/hwe/sammo/WarUnitTrigger/전투력보정.php @@ -0,0 +1,24 @@ +multiplyWarPowerMultiply($this->attackerWarPowerMultiplier); + $oppose->multiplyWarPowerMultiply($this->defenderWarPowerMultiplier); + + $this->processConsumableItem(); + + return true; + } +} \ No newline at end of file -- 2.54.0 From b919a09d330b24be143fb5b78b2e11672d27302b Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 03:09:59 +0900 Subject: [PATCH 04/25] =?UTF-8?q?game:=20=ED=9A=8C=ED=94=BC=20=EC=9C=A0?= =?UTF-8?q?=EB=8B=88=ED=81=AC=20=EC=A1=B0=EC=A0=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_필살_둔갑천서.php | 20 ++++++++++++++++++++ hwe/sammo/ActionItem/che_회피_둔갑천서.php | 4 +++- hwe/sammo/ActionItem/che_회피_태평요술.php | 4 ++-- 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 hwe/sammo/ActionItem/che_필살_둔갑천서.php diff --git a/hwe/sammo/ActionItem/che_필살_둔갑천서.php b/hwe/sammo/ActionItem/che_필살_둔갑천서.php new file mode 100644 index 00000000..e076930e --- /dev/null +++ b/hwe/sammo/ActionItem/che_필살_둔갑천서.php @@ -0,0 +1,20 @@ + Date: Sun, 20 Feb 2022 03:11:02 +0900 Subject: [PATCH 05/25] =?UTF-8?q?game,feat:=20=EA=B3=84=EB=9E=B5=20?= =?UTF-8?q?=EC=BB=A4=EB=A7=A8=EB=93=9C=20=EB=B0=A9=EC=96=B4=20=EC=9C=A0?= =?UTF-8?q?=EB=8B=88=ED=81=AC=20-=20=EA=B3=84=EB=9E=B5=20=EB=B0=A9?= =?UTF-8?q?=EC=96=B4=20=ED=99=95=EB=A5=A0=EC=97=90=20=EB=B3=B4=EC=A0=95=20?= =?UTF-8?q?trigger=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_농성_위공자병법.php | 27 ++++++++++++++++++++ hwe/sammo/ActionItem/che_농성_주서음부.php | 27 ++++++++++++++++++++ hwe/sammo/Command/General/che_화계.php | 3 +++ 3 files changed, 57 insertions(+) create mode 100644 hwe/sammo/ActionItem/che_농성_위공자병법.php create mode 100644 hwe/sammo/ActionItem/che_농성_주서음부.php diff --git a/hwe/sammo/ActionItem/che_농성_위공자병법.php b/hwe/sammo/ActionItem/che_농성_위공자병법.php new file mode 100644 index 00000000..4b942b9f --- /dev/null +++ b/hwe/sammo/ActionItem/che_농성_위공자병법.php @@ -0,0 +1,27 @@ +[전투] 상대 계략 시도 확률 -10%p, 상대 계략 성공 확률 -10%p'; + protected $cost = 200; + protected $consumable = false; + + public function onCalcStat(General $general, string $statName, $value, $aux=null){ + if($statName === 'sabotageDefence'){ + return $value + 0.3; + } + if($statName === 'warMagicTrialProb'){ + return $value - 0.1; + } + if($statName === 'warMagicSuccessProb'){ + return $value - 0.1; + } + return $value; + } +} diff --git a/hwe/sammo/ActionItem/che_농성_주서음부.php b/hwe/sammo/ActionItem/che_농성_주서음부.php new file mode 100644 index 00000000..76fea855 --- /dev/null +++ b/hwe/sammo/ActionItem/che_농성_주서음부.php @@ -0,0 +1,27 @@ +[전투] 상대 계략 시도 확률 -10%p, 상대 계략 성공 확률 -10%p'; + protected $cost = 200; + protected $consumable = false; + + public function onCalcStat(General $general, string $statName, $value, $aux=null){ + if($statName === 'sabotageDefence'){ + return $value + 0.3; + } + if($statName === 'warMagicTrialProb'){ + return $value - 0.1; + } + if($statName === 'warMagicSuccessProb'){ + return $value - 0.1; + } + return $value; + } +} diff --git a/hwe/sammo/Command/General/che_화계.php b/hwe/sammo/Command/General/che_화계.php index 7053ab04..135dc670 100644 --- a/hwe/sammo/Command/General/che_화계.php +++ b/hwe/sammo/Command/General/che_화계.php @@ -76,6 +76,7 @@ class che_화계 extends Command\GeneralCommand $destNationID = $destNation['nation']; $maxGenScore = 0; + $probCorrection = 0; foreach ($destCityGeneralList as $destGeneral) { /** @var General $destGeneral */ if ($destGeneral->getNationID() != $destNationID) { @@ -92,9 +93,11 @@ class che_화계 extends Command\GeneralCommand throw new \sammo\MustNotBeReachedException(); } $maxGenScore = max($maxGenScore, $genScore); + $probCorrection = $destGeneral->onCalcStat($destGeneral, 'sabotageDefence', $probCorrection); } $prob = $maxGenScore / GameConst::$sabotageProbCoefByStat; + $prob += $probCorrection; $prob += $destCity['secu'] / $destCity['secu_max'] / 5; //최대 20%p $prob += $destCity['supply'] ? 0.1 : 0; -- 2.54.0 From 67d224c37e6c059f9cf5626157239370df1682cc Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 03:12:17 +0900 Subject: [PATCH 06/25] =?UTF-8?q?game:=20=EA=B2=BD=EA=B3=BC=20=EC=8B=9C?= =?UTF-8?q?=EA=B0=84=EC=97=90=20=EB=94=B0=EB=9D=BC=20=EB=B3=80=ED=95=98?= =?UTF-8?q?=EB=8A=94=20=EC=9C=A0=EB=8B=88=ED=81=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ActionItem/che_능력치_무력_두강주.php | 28 +++++++++++++++++++ .../ActionItem/che_능력치_지력_이강주.php | 28 +++++++++++++++++++ .../ActionItem/che_능력치_통솔_보령압주.php | 28 +++++++++++++++++++ hwe/sammo/ActionItem/che_사기_두강주.php | 4 ++- hwe/sammo/ActionItem/che_사기_보령압주.php | 4 ++- hwe/sammo/ActionItem/che_훈련_이강주.php | 4 ++- 6 files changed, 93 insertions(+), 3 deletions(-) create mode 100644 hwe/sammo/ActionItem/che_능력치_무력_두강주.php create mode 100644 hwe/sammo/ActionItem/che_능력치_지력_이강주.php create mode 100644 hwe/sammo/ActionItem/che_능력치_통솔_보령압주.php diff --git a/hwe/sammo/ActionItem/che_능력치_무력_두강주.php b/hwe/sammo/ActionItem/che_능력치_무력_두강주.php new file mode 100644 index 00000000..02709155 --- /dev/null +++ b/hwe/sammo/ActionItem/che_능력치_무력_두강주.php @@ -0,0 +1,28 @@ +getValuesAsArray(['year', 'startyear']); + $relYear = $year - $startYear; + return $value + 5 + Util::valueFit(intdiv($relYear, 5), 0, GameConst::$maxTechLevel); + } + return $value; + } +} diff --git a/hwe/sammo/ActionItem/che_능력치_지력_이강주.php b/hwe/sammo/ActionItem/che_능력치_지력_이강주.php new file mode 100644 index 00000000..1cdc1e98 --- /dev/null +++ b/hwe/sammo/ActionItem/che_능력치_지력_이강주.php @@ -0,0 +1,28 @@ +getValuesAsArray(['year', 'startyear']); + $relYear = $year - $startYear; + return $value + 5 + Util::valueFit(intdiv($relYear, 5), 0, GameConst::$maxTechLevel); + } + return $value; + } +} diff --git a/hwe/sammo/ActionItem/che_능력치_통솔_보령압주.php b/hwe/sammo/ActionItem/che_능력치_통솔_보령압주.php new file mode 100644 index 00000000..f075e6f3 --- /dev/null +++ b/hwe/sammo/ActionItem/che_능력치_통솔_보령압주.php @@ -0,0 +1,28 @@ +getValuesAsArray(['year', 'startyear']); + $relYear = $year - $startYear; + return $value + 5 + Util::valueFit(intdiv($relYear, 5), 0, GameConst::$maxTechLevel); + } + return $value; + } +} diff --git a/hwe/sammo/ActionItem/che_사기_두강주.php b/hwe/sammo/ActionItem/che_사기_두강주.php index 28093060..152617b0 100644 --- a/hwe/sammo/ActionItem/che_사기_두강주.php +++ b/hwe/sammo/ActionItem/che_사기_두강주.php @@ -17,4 +17,6 @@ class che_사기_두강주 extends \sammo\BaseItem{ } return $value; } -} \ No newline at end of file +} + +//NOTE: 구버전 \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_사기_보령압주.php b/hwe/sammo/ActionItem/che_사기_보령압주.php index cc3101fe..cb5bc735 100644 --- a/hwe/sammo/ActionItem/che_사기_보령압주.php +++ b/hwe/sammo/ActionItem/che_사기_보령압주.php @@ -17,4 +17,6 @@ class che_사기_보령압주 extends \sammo\BaseItem{ } return $value; } -} \ No newline at end of file +} + +//NOTE: 구버전 \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_훈련_이강주.php b/hwe/sammo/ActionItem/che_훈련_이강주.php index a8593c6a..4bd82453 100644 --- a/hwe/sammo/ActionItem/che_훈련_이강주.php +++ b/hwe/sammo/ActionItem/che_훈련_이강주.php @@ -17,4 +17,6 @@ class che_훈련_이강주 extends \sammo\BaseItem{ } return $value; } -} \ No newline at end of file +} + +//NOTE: 구버전 \ No newline at end of file -- 2.54.0 From 484d939cea6f93dd4224f6c5969c183c8dfd4c5f Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 03:13:03 +0900 Subject: [PATCH 07/25] =?UTF-8?q?feat,game:=20=EC=A0=84=ED=88=AC=20?= =?UTF-8?q?=EC=A4=91=20=EC=95=BD=ED=83=88=20=EC=B6=94=EA=B0=80,=20?= =?UTF-8?q?=EC=95=BD=ED=83=88=20=EC=9C=A0=EB=8B=88=ED=81=AC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_약탈_옥벽.php | 24 +++++++++ hwe/sammo/WarUnitTrigger/che_약탈발동.php | 59 +++++++++++++++++++++++ hwe/sammo/WarUnitTrigger/che_약탈시도.php | 47 ++++++++++++++++++ 3 files changed, 130 insertions(+) create mode 100644 hwe/sammo/ActionItem/che_약탈_옥벽.php create mode 100644 hwe/sammo/WarUnitTrigger/che_약탈발동.php create mode 100644 hwe/sammo/WarUnitTrigger/che_약탈시도.php diff --git a/hwe/sammo/ActionItem/che_약탈_옥벽.php b/hwe/sammo/ActionItem/che_약탈_옥벽.php new file mode 100644 index 00000000..de7047bf --- /dev/null +++ b/hwe/sammo/ActionItem/che_약탈_옥벽.php @@ -0,0 +1,24 @@ +hasActivatedSkill('약탈')) { + return true; + } + + if ($selfEnv['약탈발동'] ?? false) { + return true; + } + $selfEnv['약탈발동'] = true; + + $general = $self->getGeneral(); + + if (!($oppose instanceof WarUnitGeneral)) { + return true; + } + + + $general->increaseVarWithLimit('atmos', $selfEnv['addAtmos'], 0, GameConst::$maxAtmosByWar); + + $opposeGeneral = $oppose->getGeneral(); + + $theftGold = $opposeGeneral->getVar('gold') * $selfEnv['theftRatio']; + $theftRice = $opposeGeneral->getVar('rice') * $selfEnv['theftRatio']; + + $opposeGeneral->increaseVarWithLimit('gold', -$theftGold, 0); + $opposeGeneral->increaseVarWithLimit('rice', -$theftRice, 0); + + $general->increaseVar('gold', $theftGold); + $general->increaseVar('rice', $theftRice); + + $self->getLogger()->pushGeneralActionLog("상대를 약탈했다!", ActionLogger::PLAIN); + $self->getLogger()->pushGeneralBattleDetailLog("상대에게서 금 {$theftGold}, 쌀 {$theftRice} 만큼을 약탈했다!", ActionLogger::PLAIN); + $oppose->getLogger()->pushGeneralActionLog("상대에게 약탈당했다!", ActionLogger::PLAIN); + $oppose->getLogger()->pushGeneralBattleDetailLog("상대에게 금 {$theftGold}, 쌀 {$theftRice} 만큼을 약탈당했다!", ActionLogger::PLAIN); + + $this->processConsumableItem(); + + return true; + } +} diff --git a/hwe/sammo/WarUnitTrigger/che_약탈시도.php b/hwe/sammo/WarUnitTrigger/che_약탈시도.php new file mode 100644 index 00000000..e22c6477 --- /dev/null +++ b/hwe/sammo/WarUnitTrigger/che_약탈시도.php @@ -0,0 +1,47 @@ +object = $unit; + $this->raiseType = $raiseType; + $this->ratio = $ratio; + $this->theftRatio = $theftRatio; + } + + protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{ + assert($self instanceof WarUnitGeneral, 'General만 발동 가능'); + if($self->getPhase() !== 0 && $oppose->getPhase() !== 0){ + return true; + } + if(!($oppose instanceof WarUnitGeneral)){ + return true; + } + if($self->hasActivatedSkill('약탈')){ + return true; + } + if($self->hasActivatedSkill('약탈불가')){ + return true; + } + if(!Util::randBool($this->ratio)){ + return true; + } + + $self->activateSkill('약탈'); + $selfEnv['theftRatio'] = $this->theftRatio; + + return true; + } +} \ No newline at end of file -- 2.54.0 From 3a68cf07b36cd900a9e12fdef85399413c6facbf Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 03:16:46 +0900 Subject: [PATCH 08/25] =?UTF-8?q?feat,game:=20=EB=B0=98=EA=B3=84=EB=B6=88?= =?UTF-8?q?=EA=B0=80=20=EC=B2=98=EB=A6=AC=20=EC=B6=94=EA=B0=80,=20?= =?UTF-8?q?=EB=B0=98=EA=B3=84=EB=B6=88=EA=B0=80=20=EC=9C=A0=EB=8B=88?= =?UTF-8?q?=ED=81=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_반계저지_박혁론.php | 23 ++++++++++++++++++++ hwe/sammo/WarUnitTrigger/che_반계시도.php | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 hwe/sammo/ActionItem/che_반계저지_박혁론.php diff --git a/hwe/sammo/ActionItem/che_반계저지_박혁론.php b/hwe/sammo/ActionItem/che_반계저지_박혁론.php new file mode 100644 index 00000000..6b46409a --- /dev/null +++ b/hwe/sammo/ActionItem/che_반계저지_박혁론.php @@ -0,0 +1,23 @@ +hasActivatedSkill('계략')){ return true; } + if($self->hasActivatedSkill('반계불가')){ + return true; + } if(!Util::randBool($this->prob)){ return true; -- 2.54.0 From 2cdf00af5048ab91716bb7a6ce3a6cd235614074 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 03:17:35 +0900 Subject: [PATCH 09/25] =?UTF-8?q?game:=201=ED=9A=8C=EC=A0=80=EC=A7=80,=20?= =?UTF-8?q?=ED=9A=8C=ED=94=BC=EC=A0=80=EC=A7=80=20=EC=9C=A0=EB=8B=88?= =?UTF-8?q?=ED=81=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_저지_상황내문.php | 28 +++++++++++++++++++ .../ActionItem/che_회피저지_노군입산부.php | 20 +++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 hwe/sammo/ActionItem/che_저지_상황내문.php create mode 100644 hwe/sammo/ActionItem/che_회피저지_노군입산부.php diff --git a/hwe/sammo/ActionItem/che_저지_상황내문.php b/hwe/sammo/ActionItem/che_저지_상황내문.php new file mode 100644 index 00000000..e498c84e --- /dev/null +++ b/hwe/sammo/ActionItem/che_저지_상황내문.php @@ -0,0 +1,28 @@ +getPhase() != 0){ + return null; + } + + return new WarUnitTriggerCaller( + new WarActivateSkills($unit, BaseWarUnitTrigger::TYPE_NONE, true, '특수', '저지'), + new che_저지발동($unit) + ); + } +} \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_회피저지_노군입산부.php b/hwe/sammo/ActionItem/che_회피저지_노군입산부.php new file mode 100644 index 00000000..304f774a --- /dev/null +++ b/hwe/sammo/ActionItem/che_회피저지_노군입산부.php @@ -0,0 +1,20 @@ + Date: Sun, 20 Feb 2022 03:37:15 +0900 Subject: [PATCH 10/25] =?UTF-8?q?game:=20=EC=A0=84=ED=88=AC=20=ED=8A=B9?= =?UTF-8?q?=EA=B8=B0=20=EB=B0=98=EC=98=81=20=EC=9C=A0=EB=8B=88=ED=81=AC=20?= =?UTF-8?q?=EB=8F=84=EA=B5=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_격노_구정신단경.php | 30 ++++++++++++++++++++ hwe/sammo/ActionItem/che_공성_묵자.php | 24 ++++++++++++++++ hwe/sammo/ActionItem/che_반계_백우선.php | 14 +++++++-- hwe/sammo/ActionItem/che_위압_조목삭.php | 25 ++++++++++++++++ hwe/sammo/ActionItem/che_집중_전국책.php | 25 ++++++++++++++++ hwe/sammo/ActionItem/che_징병_낙주.php | 30 ++++++++++++++++++++ hwe/sammo/ActionItem/che_척사_오약진형도.php | 23 +++++++++++++++ hwe/sammo/ActionItem/che_환술_논어집해.php | 28 ++++++++++++++++++ hwe/sammo/ActionItem/event_전투특기_격노.php | 2 +- hwe/sammo/ActionItem/event_전투특기_징병.php | 4 +-- 10 files changed, 200 insertions(+), 5 deletions(-) create mode 100644 hwe/sammo/ActionItem/che_격노_구정신단경.php create mode 100644 hwe/sammo/ActionItem/che_공성_묵자.php create mode 100644 hwe/sammo/ActionItem/che_위압_조목삭.php create mode 100644 hwe/sammo/ActionItem/che_집중_전국책.php create mode 100644 hwe/sammo/ActionItem/che_징병_낙주.php create mode 100644 hwe/sammo/ActionItem/che_척사_오약진형도.php create mode 100644 hwe/sammo/ActionItem/che_환술_논어집해.php diff --git a/hwe/sammo/ActionItem/che_격노_구정신단경.php b/hwe/sammo/ActionItem/che_격노_구정신단경.php new file mode 100644 index 00000000..f5fece19 --- /dev/null +++ b/hwe/sammo/ActionItem/che_격노_구정신단경.php @@ -0,0 +1,30 @@ +hasActivatedSkillOnLog('격노'); + return [1 + 0.2*$activatedCnt, 1]; + } + + public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{ + return new WarUnitTriggerCaller( + new che_격노시도($unit, che_격노시도::TYPE_ITEM), + new che_격노발동($unit) + ); + } +} \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_공성_묵자.php b/hwe/sammo/ActionItem/che_공성_묵자.php new file mode 100644 index 00000000..839b9275 --- /dev/null +++ b/hwe/sammo/ActionItem/che_공성_묵자.php @@ -0,0 +1,24 @@ +getOppose() instanceof WarUnitCity){ + return [1.5, 1]; + } + return [1, 1]; + } +} \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_반계_백우선.php b/hwe/sammo/ActionItem/che_반계_백우선.php index ce9a4542..46d3ffd4 100644 --- a/hwe/sammo/ActionItem/che_반계_백우선.php +++ b/hwe/sammo/ActionItem/che_반계_백우선.php @@ -14,7 +14,7 @@ class che_반계_백우선 extends \sammo\BaseItem{ protected $rawName = '백우선'; protected $name = '백우선(반계)'; - protected $info = '[전투] 상대의 계략 성공 확률 -10%p, 상대의 계략을 20% 확률로 되돌림'; + protected $info = '[전투] 상대의 계략 성공 확률 -10%p, 상대의 계략을 30% 확률로 되돌림, 반목 성공시 대미지 추가(+60% → +100%), 소모 군량 +10%'; protected $cost = 200; protected $consumable = false; @@ -26,9 +26,19 @@ class che_반계_백우선 extends \sammo\BaseItem{ return $value - $debuff; } + public function onCalcStat(General $general, string $statName, $value, $aux=null){ + if($statName == 'killRice'){ + return $value * 1.1; + } + if($statName === 'warMagicSuccessDamage' && $aux === '반목'){ + return $value + 0.4; + } + return $value; + } + public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{ return new WarUnitTriggerCaller( - new che_반계시도($unit, BaseWarUnitTrigger::TYPE_ITEM +BaseWarUnitTrigger::TYPE_DEDUP_TYPE_BASE*301, 0.2), + new che_반계시도($unit, BaseWarUnitTrigger::TYPE_ITEM +BaseWarUnitTrigger::TYPE_DEDUP_TYPE_BASE*301, 0.3), new che_반계발동($unit) ); } diff --git a/hwe/sammo/ActionItem/che_위압_조목삭.php b/hwe/sammo/ActionItem/che_위압_조목삭.php new file mode 100644 index 00000000..1f8c0ea1 --- /dev/null +++ b/hwe/sammo/ActionItem/che_위압_조목삭.php @@ -0,0 +1,25 @@ +getVar('leadership') * 0.25; + } + return $value; + } +} \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_척사_오약진형도.php b/hwe/sammo/ActionItem/che_척사_오약진형도.php new file mode 100644 index 00000000..b29a1301 --- /dev/null +++ b/hwe/sammo/ActionItem/che_척사_오약진형도.php @@ -0,0 +1,23 @@ +getOppose()->getCrewType(); + if($opposeCrewType->reqCities || $opposeCrewType->reqRegions){ + return [1.15, 0.85]; + } + return [1, 1]; + } +} \ No newline at end of file diff --git a/hwe/sammo/ActionItem/che_환술_논어집해.php b/hwe/sammo/ActionItem/che_환술_논어집해.php new file mode 100644 index 00000000..1c3ec5ea --- /dev/null +++ b/hwe/sammo/ActionItem/che_환술_논어집해.php @@ -0,0 +1,28 @@ +getVar('leadership') * 0.25; } return $value; } -- 2.54.0 From b692eccd08f2002f961135fce681e3915d567779 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 03:38:50 +0900 Subject: [PATCH 11/25] =?UTF-8?q?fix:=20=EB=8A=A5=EB=A0=A5=EC=B9=98=20?= =?UTF-8?q?=EC=9C=A0=EB=8B=88=ED=81=AC=20=EC=98=A4=ED=83=80=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_능력치_무력_두강주.php | 2 +- hwe/sammo/ActionItem/che_능력치_지력_이강주.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hwe/sammo/ActionItem/che_능력치_무력_두강주.php b/hwe/sammo/ActionItem/che_능력치_무력_두강주.php index 02709155..8dda7371 100644 --- a/hwe/sammo/ActionItem/che_능력치_무력_두강주.php +++ b/hwe/sammo/ActionItem/che_능력치_무력_두강주.php @@ -8,7 +8,7 @@ use \sammo\General; use sammo\KVStorage; use sammo\Util; -class che_능력치_통솔_두강주 extends \sammo\BaseItem{ +class che_능력치_무력_두강주 extends \sammo\BaseItem{ protected $rawName = '두강주'; protected $name = '두강주(무력)'; diff --git a/hwe/sammo/ActionItem/che_능력치_지력_이강주.php b/hwe/sammo/ActionItem/che_능력치_지력_이강주.php index 1cdc1e98..a95e3def 100644 --- a/hwe/sammo/ActionItem/che_능력치_지력_이강주.php +++ b/hwe/sammo/ActionItem/che_능력치_지력_이강주.php @@ -8,10 +8,10 @@ use \sammo\General; use sammo\KVStorage; use sammo\Util; -class che_능력치_통솔_과실주 extends \sammo\BaseItem{ +class che_능력치_지력_이강주 extends \sammo\BaseItem{ protected $rawName = '과실주'; - protected $name = '과실주(무력)'; + protected $name = '과실주(지력)'; protected $info = '[능력치] 지력 보정 +5 + (5년마다 +1)'; protected $cost = 200; protected $consumable = false; -- 2.54.0 From f014dae6af3700cd66479c5dd2dda28931c078e8 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 04:01:03 +0900 Subject: [PATCH 12/25] =?UTF-8?q?game,feat:=20=EC=A1=B0=EB=8B=AC=20?= =?UTF-8?q?=ED=9A=A8=EC=9C=A8=20=EB=B3=80=EA=B2=BD=20trigger=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80,=20=EC=A1=B0=EB=8B=AC=20=EC=9C=A0=EB=8B=88=ED=81=AC?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_조달_주판.php | 22 ++++++++++++++++++++++ hwe/sammo/Command/General/che_물자조달.php | 15 +++++++++++---- 2 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 hwe/sammo/ActionItem/che_조달_주판.php diff --git a/hwe/sammo/ActionItem/che_조달_주판.php b/hwe/sammo/ActionItem/che_조달_주판.php new file mode 100644 index 00000000..a7517b86 --- /dev/null +++ b/hwe/sammo/ActionItem/che_조달_주판.php @@ -0,0 +1,22 @@ +getVar('explevel')); $score *= Util::randRange(0.8, 1.2); + $successRatio = 0.1; + $failRatio = 0.3; + + $successRatio = $general->onCalcDomestic('조달', 'success', $successRatio); + $failRatio = $general->onCalcDomestic('조달', 'fail', $failRatio); + $normalRatio = 1 - $failRatio - $successRatio; + $pick = Util::choiceRandomUsingWeight([ - 'fail'=>0.3, - 'success'=>0.1, - 'normal'=>0.6 + 'fail'=>$failRatio, + 'success'=>$successRatio, + 'normal'=>$normalRatio ]); $score *= CriticalScoreEx($pick); - + $score = $general->onCalcDomestic('조달', 'score', $score); $score = Util::round($score); $scoreText = number_format($score, 0); -- 2.54.0 From 74efa5c5025ca8ba7932516cdb7d49a756aff88b Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 04:01:55 +0900 Subject: [PATCH 13/25] =?UTF-8?q?game,feat:=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EC=88=99=EB=A0=A8=20trigger=EC=B6=94=EA=B0=80,=20=EC=88=99?= =?UTF-8?q?=EB=A0=A8=20=EC=9C=A0=EB=8B=88=ED=81=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_숙련_동작.php | 20 ++++++++++++++++++++ hwe/sammo/General.php | 1 + 2 files changed, 21 insertions(+) create mode 100644 hwe/sammo/ActionItem/che_숙련_동작.php diff --git a/hwe/sammo/ActionItem/che_숙련_동작.php b/hwe/sammo/ActionItem/che_숙련_동작.php new file mode 100644 index 00000000..60e6084d --- /dev/null +++ b/hwe/sammo/ActionItem/che_숙련_동작.php @@ -0,0 +1,20 @@ +onCalcStat($this, 'addDex', $exp, ['armType'=>$armType]); $this->increaseVar($dexType, $exp); } -- 2.54.0 From bad7ed2772006ed58e794427b2ed56579e54d7a1 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 04:02:35 +0900 Subject: [PATCH 14/25] =?UTF-8?q?game:=20=EB=B9=84=EC=A0=84=ED=88=AC=20?= =?UTF-8?q?=EC=BB=A4=EB=A7=A8=EB=93=9C=20=ED=9A=A8=EC=9C=A8=20=EC=9C=A0?= =?UTF-8?q?=EB=8B=88=ED=81=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_내정_납금박산로.php | 21 ++++++++++++++++++++ hwe/sammo/ActionItem/che_명성_구석.php | 20 +++++++++++++++++++ hwe/sammo/ActionItem/che_전략_평만지장도.php | 21 ++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 hwe/sammo/ActionItem/che_내정_납금박산로.php create mode 100644 hwe/sammo/ActionItem/che_명성_구석.php create mode 100644 hwe/sammo/ActionItem/che_전략_평만지장도.php diff --git a/hwe/sammo/ActionItem/che_내정_납금박산로.php b/hwe/sammo/ActionItem/che_내정_납금박산로.php new file mode 100644 index 00000000..1b0d9cf7 --- /dev/null +++ b/hwe/sammo/ActionItem/che_내정_납금박산로.php @@ -0,0 +1,21 @@ + Date: Sun, 20 Feb 2022 04:10:34 +0900 Subject: [PATCH 15/25] =?UTF-8?q?game:=20=EC=9D=98=EC=88=A0=20=EC=9C=A0?= =?UTF-8?q?=EB=8B=88=ED=81=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_의술_정력건혈산.php | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 hwe/sammo/ActionItem/che_의술_정력건혈산.php diff --git a/hwe/sammo/ActionItem/che_의술_정력건혈산.php b/hwe/sammo/ActionItem/che_의술_정력건혈산.php new file mode 100644 index 00000000..74cb8ef9 --- /dev/null +++ b/hwe/sammo/ActionItem/che_의술_정력건혈산.php @@ -0,0 +1,34 @@ +[전투] 페이즈마다 40% 확률로 치료 발동(아군 피해 1/3 감소, 부상 회복)'; + protected $cost = 200; + protected $consumable = false; + + public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{ + return new GeneralTriggerCaller( + new GeneralTrigger\che_도시치료($general) + ); + } + + public function getBattlePhaseSkillTriggerList(\sammo\WarUnit $unit): ?WarUnitTriggerCaller + { + return new WarUnitTriggerCaller( + new che_전투치료시도($unit, BaseWarUnitTrigger::TYPE_ITEM+BaseWarUnitTrigger::TYPE_DEDUP_TYPE_BASE*302), + new che_전투치료발동($unit, BaseWarUnitTrigger::TYPE_ITEM) + + ); + } +} \ No newline at end of file -- 2.54.0 From af3a60590e230e16db364126c4b82ab39de260ef Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 04:30:05 +0900 Subject: [PATCH 16/25] =?UTF-8?q?feat:=20=EC=9E=84=EC=9D=98=20=EC=BB=A4?= =?UTF-8?q?=EB=A7=A8=EB=93=9C=EC=9A=A9=20=ED=8A=B8=EB=A6=AC=EA=B1=B0=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/DefaultAction.php | 4 ++++ hwe/sammo/General.php | 19 +++++++++++++++++++ hwe/sammo/iAction.php | 2 ++ 3 files changed, 25 insertions(+) diff --git a/hwe/sammo/DefaultAction.php b/hwe/sammo/DefaultAction.php index f6aec8e8..6b77c848 100644 --- a/hwe/sammo/DefaultAction.php +++ b/hwe/sammo/DefaultAction.php @@ -46,4 +46,8 @@ trait DefaultAction{ public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{ return null; } + + public function onArbitraryAction(General $general, string $actionType, ?string $phase=null, $aux=null): null|array{ + return $aux; + } } \ No newline at end of file diff --git a/hwe/sammo/General.php b/hwe/sammo/General.php index d00912ca..b5027204 100644 --- a/hwe/sammo/General.php +++ b/hwe/sammo/General.php @@ -1010,6 +1010,25 @@ class General implements iAction return $amount; } + public function onArbitraryAction(General $general, string $actionType, ?string $phase=null, $aux=null): null|array{ + foreach (array_merge([ + $this->nationType, + $this->officerLevelObj, + $this->specialDomesticObj, + $this->specialWarObj, + $this->personalityObj, + $this->getCrewTypeObj(), + $this->inheritBuffObj, + ], $this->itemObjs) as $iObj) { + if (!$iObj) { + continue; + } + /** @var iAction $iObj */ + $aux = $iObj->onArbitraryAction($general, $actionType, $phase, $aux); + } + return $aux; + } + public function getWarPowerMultiplier(WarUnit $unit): array { //xxx:$unit diff --git a/hwe/sammo/iAction.php b/hwe/sammo/iAction.php index d0393dec..54b5588e 100644 --- a/hwe/sammo/iAction.php +++ b/hwe/sammo/iAction.php @@ -18,4 +18,6 @@ interface iAction{ public function getBattleInitSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller; public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller; //NOTE: getBattleEndSkillTriggerList도 필요한가? + + public function onArbitraryAction(General $general, string $actionType, ?string $phase=null, ?array $aux=null): null|array; } \ No newline at end of file -- 2.54.0 From afa08e9170c2b86c32bf6d53d842b4a7ed29b56c Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 04:34:10 +0900 Subject: [PATCH 17/25] =?UTF-8?q?feat,game:=20=EC=9E=A5=EB=B9=84=EB=A7=A4?= =?UTF-8?q?=EB=A7=A4=EC=8B=9C=20=EB=B0=98=EC=9D=91=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=ED=8A=B8=EB=A6=AC=EA=B1=B0=20=EC=B6=94=EA=B0=80,=20=ED=8C=90?= =?UTF-8?q?=EB=A7=A4=EC=8B=9C=20=EA=B5=AD=EA=B3=A0=EC=97=90=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=EB=90=98=EB=8A=94=20=EC=9C=A0=EB=8B=88=ED=81=AC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_보물_도기.php | 58 ++++++++++++ hwe/sammo/Command/General/che_장비매매.php | 101 +++++---------------- 2 files changed, 81 insertions(+), 78 deletions(-) create mode 100644 hwe/sammo/ActionItem/che_보물_도기.php diff --git a/hwe/sammo/ActionItem/che_보물_도기.php b/hwe/sammo/ActionItem/che_보물_도기.php new file mode 100644 index 00000000..a6aa0f6e --- /dev/null +++ b/hwe/sammo/ActionItem/che_보물_도기.php @@ -0,0 +1,58 @@ +getValuesAsArray(['year', 'startyear']); + $relYear = $year - $startYear; + + $score = 10000 * (1 + Util::valueFit(intdiv($relYear, 5), 0)); + + [$resName, $resKey] = Util::choiceRandom([ + ['금', 'gold'], + ['쌀', 'rice'] + ]); + + $db->update('nation', [ + $resKey => $db->sqleval('%b + %i', $resKey, $score) + ]); + + $score = Util::round($score); + $scoreText = number_format($score, 0); + + $logger = $general->getLogger(); + $logger->pushGeneralActionLog("국고에 {$resName} {$scoreText}을 보충합니다."); + return $aux; + } +} diff --git a/hwe/sammo/Command/General/che_장비매매.php b/hwe/sammo/Command/General/che_장비매매.php index ea8f4954..2e4a0172 100644 --- a/hwe/sammo/Command/General/che_장비매매.php +++ b/hwe/sammo/Command/General/che_장비매매.php @@ -173,11 +173,13 @@ class che_장비매매 extends Command\GeneralCommand if ($buying) { $logger->pushGeneralActionLog("{$itemName}{$josaUl} 구입했습니다. <1>$date"); $general->increaseVarWithLimit('gold', -$cost, 0); - $general->setVar($itemType, $itemCode); + $general->setItem($itemType, $itemCode); + $general->onArbitraryAction($general, '장비매매', '구매', ['itemCode' => $itemCode]); } else { $logger->pushGeneralActionLog("{$itemName}{$josaUl} 판매했습니다. <1>$date"); $general->increaseVarWithLimit('gold', $cost / 2); - $general->deleteItem($itemType); + $general->onArbitraryAction($general, '장비매매', '판매', ['itemCode' => $itemCode]); + $general->setItem($itemType, null); } $exp = 10; @@ -209,96 +211,39 @@ class che_장비매매 extends Command\GeneralCommand continue; } $values[] = [ - 'id'=>$itemCode, - 'name'=>$item->getName(), - 'reqSecu'=>$item->getReqSecu(), - 'cost'=>$item->getCost(), - 'info'=>$item->getInfo(), - 'isBuyable'=>$item->isBuyable(),//항상 true지만, 일관성을 위해 + 'id' => $itemCode, + 'name' => $item->getName(), + 'reqSecu' => $item->getReqSecu(), + 'cost' => $item->getCost(), + 'info' => $item->getInfo(), + 'isBuyable' => $item->isBuyable(), //항상 true지만, 일관성을 위해 ]; } $itemList[$itemType] = [ - 'typeName'=>$typeName, - 'values'=>$values + 'typeName' => $typeName, + 'values' => $values ]; } $ownItem = []; - foreach($general->getItems() as $itemType => $item){ + foreach ($general->getItems() as $itemType => $item) { $ownItem[$itemType] = [ - 'id'=>$item->getRawClassName(), - 'name'=>$item->getName(), - 'reqSecu'=>$item->getReqSecu(), - 'cost'=>$item->getCost(), - 'info'=>$item->getInfo(), - 'isBuyable'=>$item->isBuyable(), + 'id' => $item->getRawClassName(), + 'name' => $item->getName(), + 'reqSecu' => $item->getReqSecu(), + 'cost' => $item->getCost(), + 'info' => $item->getInfo(), + 'isBuyable' => $item->isBuyable(), ]; } return [ 'procRes' => [ - 'citySecu'=>$citySecu, - 'gold'=>$general->getVar('gold'), - 'itemList'=>$itemList, - 'ownItem'=>$ownItem, + 'citySecu' => $citySecu, + 'gold' => $general->getVar('gold'), + 'itemList' => $itemList, + 'ownItem' => $ownItem, ] ]; } - - public function getForm(): string - { - $form = []; - - $db = DB::db(); - - $citySecu = $db->queryFirstField('SELECT secu FROM city WHERE city = %i', $this->generalObj->getCityID()); - $gold = $this->generalObj->getVar('gold'); - - ob_start(); -?> - - - 장비를 구입하거나 매각합니다.
- 현재 구입 불가능한 것은 붉은색으로 표시됩니다.
- 현재 도시 치안 :    현재 자금 :
- 장비 : -
- Date: Sun, 20 Feb 2022 05:11:26 +0900 Subject: [PATCH 18/25] =?UTF-8?q?fix:=20=EC=98=A4=ED=83=80=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_의술_정력건혈산.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwe/sammo/ActionItem/che_의술_정력건혈산.php b/hwe/sammo/ActionItem/che_의술_정력건혈산.php index 74cb8ef9..cae19879 100644 --- a/hwe/sammo/ActionItem/che_의술_정력건혈산.php +++ b/hwe/sammo/ActionItem/che_의술_정력건혈산.php @@ -12,7 +12,7 @@ use sammo\WarUnitTriggerCaller; class che_의술_정력건혈산 extends \sammo\BaseItem{ protected $rawName = '정력건혈산'; - protected $name = '청낭서(의술)'; + protected $name = '정력건혈산(의술)'; protected $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복
[전투] 페이즈마다 40% 확률로 치료 발동(아군 피해 1/3 감소, 부상 회복)'; protected $cost = 200; protected $consumable = false; -- 2.54.0 From be735c09901bcb7008f0588908036d7e82908aac Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 14:51:04 +0900 Subject: [PATCH 19/25] =?UTF-8?q?game:=20=EC=95=84=EC=9D=B4=ED=85=9C?= =?UTF-8?q?=EC=9D=84=20=EC=8B=A4=EC=A0=9C=EB=A1=9C=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=ED=95=A0=20=EC=88=98=20=EC=9E=88=EB=8F=84=EB=A1=9D=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ActionItem/che_능력치_지력_이강주.php | 4 ++-- .../ActionItem/che_명마_12_옥란백용구.php | 2 +- .../{che_광기_상편.php => che_불굴_상편.php} | 6 ++--- ...정력건혈산.php => che_의술_정력견혈산.php} | 6 ++--- ...지_상황내문.php => che_저지_삼황내문.php} | 6 ++--- ...오약진형도.php => che_척사_오악진형도.php} | 6 ++--- hwe/sammo/GameConstBase.php | 24 ++++++++++++------- 7 files changed, 31 insertions(+), 23 deletions(-) rename hwe/sammo/ActionItem/{che_광기_상편.php => che_불굴_상편.php} (79%) rename hwe/sammo/ActionItem/{che_의술_정력건혈산.php => che_의술_정력견혈산.php} (86%) rename hwe/sammo/ActionItem/{che_저지_상황내문.php => che_저지_삼황내문.php} (82%) rename hwe/sammo/ActionItem/{che_척사_오약진형도.php => che_척사_오악진형도.php} (76%) diff --git a/hwe/sammo/ActionItem/che_능력치_지력_이강주.php b/hwe/sammo/ActionItem/che_능력치_지력_이강주.php index a95e3def..66f88b4c 100644 --- a/hwe/sammo/ActionItem/che_능력치_지력_이강주.php +++ b/hwe/sammo/ActionItem/che_능력치_지력_이강주.php @@ -10,8 +10,8 @@ use sammo\Util; class che_능력치_지력_이강주 extends \sammo\BaseItem{ - protected $rawName = '과실주'; - protected $name = '과실주(지력)'; + protected $rawName = '이강주'; + protected $name = '이강주(지력)'; protected $info = '[능력치] 지력 보정 +5 + (5년마다 +1)'; protected $cost = 200; protected $consumable = false; diff --git a/hwe/sammo/ActionItem/che_명마_12_옥란백용구.php b/hwe/sammo/ActionItem/che_명마_12_옥란백용구.php index 02a76fd9..4aa866b3 100644 --- a/hwe/sammo/ActionItem/che_명마_12_옥란백용구.php +++ b/hwe/sammo/ActionItem/che_명마_12_옥란백용구.php @@ -10,7 +10,7 @@ class che_명마_12_옥란백용구 extends \sammo\BaseStatItem{ public function __construct() { parent::__construct(); - $this->info .= "
[전투] 남은 병력에 따라 회피 확률 증가. 최대 +30%p"; + $this->info .= "
[전투] 남은 병력이 적을수록 회피 확률 증가. 최대 +30%p"; } public function onCalcStat(General $general, string $statName, $value, $aux = null) diff --git a/hwe/sammo/ActionItem/che_광기_상편.php b/hwe/sammo/ActionItem/che_불굴_상편.php similarity index 79% rename from hwe/sammo/ActionItem/che_광기_상편.php rename to hwe/sammo/ActionItem/che_불굴_상편.php index 3e48cd4c..3be6e233 100644 --- a/hwe/sammo/ActionItem/che_광기_상편.php +++ b/hwe/sammo/ActionItem/che_불굴_상편.php @@ -9,12 +9,12 @@ use sammo\WarUnit; use sammo\WarUnitTrigger\전투력보정; use sammo\WarUnitTriggerCaller; -class che_광기_상편 extends \sammo\BaseItem +class che_불굴_상편 extends \sammo\BaseItem { protected $rawName = '상편'; - protected $name = '상편(광기)'; - protected $info = '[전투] 남은 병력에 따라 공격력 증가. 최대 +50%'; + protected $name = '상편(불굴)'; + protected $info = '[전투] 남은 병력이 적을수록 공격력 증가. 최대 +50%'; protected $cost = 200; protected $consumable = false; diff --git a/hwe/sammo/ActionItem/che_의술_정력건혈산.php b/hwe/sammo/ActionItem/che_의술_정력견혈산.php similarity index 86% rename from hwe/sammo/ActionItem/che_의술_정력건혈산.php rename to hwe/sammo/ActionItem/che_의술_정력견혈산.php index cae19879..145d18c0 100644 --- a/hwe/sammo/ActionItem/che_의술_정력건혈산.php +++ b/hwe/sammo/ActionItem/che_의술_정력견혈산.php @@ -9,10 +9,10 @@ use sammo\WarUnitTrigger\che_전투치료시도; use sammo\BaseWarUnitTrigger; use sammo\WarUnitTriggerCaller; -class che_의술_정력건혈산 extends \sammo\BaseItem{ +class che_의술_정력견혈산 extends \sammo\BaseItem{ - protected $rawName = '정력건혈산'; - protected $name = '정력건혈산(의술)'; + protected $rawName = '정력견혈산'; + protected $name = '정력견혈산(의술)'; protected $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복
[전투] 페이즈마다 40% 확률로 치료 발동(아군 피해 1/3 감소, 부상 회복)'; protected $cost = 200; protected $consumable = false; diff --git a/hwe/sammo/ActionItem/che_저지_상황내문.php b/hwe/sammo/ActionItem/che_저지_삼황내문.php similarity index 82% rename from hwe/sammo/ActionItem/che_저지_상황내문.php rename to hwe/sammo/ActionItem/che_저지_삼황내문.php index e498c84e..b0497b59 100644 --- a/hwe/sammo/ActionItem/che_저지_상황내문.php +++ b/hwe/sammo/ActionItem/che_저지_삼황내문.php @@ -7,10 +7,10 @@ use sammo\WarUnitTrigger\che_저지발동; use sammo\WarUnitTrigger\WarActivateSkills; use sammo\WarUnitTriggerCaller; -class che_저지_상황내문 extends \sammo\BaseItem{ +class che_저지_삼황내문 extends \sammo\BaseItem{ - protected $rawName = '상황내문'; - protected $name = '상황내문(저지)'; + protected $rawName = '삼황내문'; + protected $name = '삼황내문(저지)'; protected $info = '[전투] 수비 시 저지'; protected $cost = 200; protected $consumable = false; diff --git a/hwe/sammo/ActionItem/che_척사_오약진형도.php b/hwe/sammo/ActionItem/che_척사_오악진형도.php similarity index 76% rename from hwe/sammo/ActionItem/che_척사_오약진형도.php rename to hwe/sammo/ActionItem/che_척사_오악진형도.php index b29a1301..cc814aeb 100644 --- a/hwe/sammo/ActionItem/che_척사_오약진형도.php +++ b/hwe/sammo/ActionItem/che_척사_오악진형도.php @@ -5,10 +5,10 @@ use \sammo\General; use \sammo\SpecialityHelper; use \sammo\WarUnit; -class che_척사_오약진형도 extends \sammo\BaseItem{ +class che_척사_오악진형도 extends \sammo\BaseItem{ - protected $rawName = '오약진형도'; - protected $name = '오약진형도(척사)'; + protected $rawName = '오악진형도'; + protected $name = '오악진형도(척사)'; protected $info = '[전투] 지역·도시 병종 상대로 대미지 +15%, 아군 피해 -15%'; protected $cost = 200; protected $consumable = false; diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index 8941f651..0ca2711f 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -251,17 +251,25 @@ class GameConstBase 'che_치료_환약' => 0, 'che_저격_수극' => 0, 'che_사기_탁주' => 0, 'che_훈련_청주' => 0, 'che_계략_이추' => 0, 'che_계략_향낭' => 0, - 'che_의술_청낭서' => 1, 'che_의술_태평청령' => 1, 'che_의술_상한잡병론' => 1, - 'che_부적_태현청생부' => 1, - 'che_저격_매화수전' => 1, 'che_저격_비도' => 1, + 'che_의술_정력견혈산' => 1, 'che_의술_청낭서' => 1, 'che_의술_태평청령' => 1, 'che_의술_상한잡병론' => 1, + 'che_보물_도기' => 1, 'che_조달_주판' => 1, + 'che_내정_납금박산로' => 1, 'che_전략_평만지장도' => 1, 'che_숙련_동작' => 1, 'che_명성_구석' => 1, + + 'che_척사_오악진형도' => 1, 'che_격노_구정신단경' => 1, 'che_징병_낙주' => 1, + 'che_저격_매화수전' => 1, 'che_위압_조목삭' => 1, 'che_공성_묵자' => 1, + 'che_반계_백우선' => 1, 'che_집중_전국책' => 1, 'che_환술_논어집해' => 1, + + 'che_반계저지_박혁론' => 1, 'che_부적_태현청생부' => 1, 'che_저지_삼황내문' => 1, + 'che_행동_서촉지형도' => 1, 'che_회피저지_노군입산부' => 1, 'che_불굴_상편' => 1, + 'che_약탈_옥벽' => 1, + + 'che_농성_주서음부' => 1, 'che_농성_위공자병법' => 1, 'che_계략_육도' => 1, 'che_계략_삼략' => 1, - 'che_반계_백우선' => 1, - 'che_행동_서촉지형도' => 1, - - 'che_훈련_과실주' => 1, 'che_훈련_이강주' => 1, 'che_사기_두강주' => 1, 'che_사기_보령압주' => 1, + 'che_상성보정_과실주' => 1, + 'che_능력치_지력_이강주' => 1, 'che_능력치_무력_두강주' => 1, 'che_능력치_통솔_보령압주' => 1, 'che_훈련_철벽서' => 1, 'che_훈련_단결도' => 1, 'che_사기_춘화첩' => 1, 'che_사기_초선화' => 1, - 'che_회피_태평요술' => 1, 'che_회피_둔갑천서' => 1, + 'che_회피_태평요술' => 1, 'che_필살_둔갑천서' => 1, ] ]; -- 2.54.0 From 240085834a4cefc2af2a28d40c9a4e80c4f0c308 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 14:57:56 +0900 Subject: [PATCH 20/25] =?UTF-8?q?fix:=20=EC=9D=B4=EB=B2=A4=ED=8A=B8?= =?UTF-8?q?=EB=A1=9C=20=EB=AA=A8=EB=93=A0=20=EC=9E=A5=EC=88=98=EC=9D=98=20?= =?UTF-8?q?=EC=A7=80=EC=B6=9C=EC=9D=B4=200=EC=9D=B8=20=EA=B2=BD=EC=9A=B0?= =?UTF-8?q?=20=EB=8C=80=EB=B9=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GeneralAI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 08189fb8..9ff69c9e 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -4144,7 +4144,7 @@ class GeneralAI $wallIncome = getWallIncome($nation['nation'], $nation['level'], $nation['rate'], $nation['capital'], $nation['type'], $cityList); $income = $riceIncome + $wallIncome; - $outcome = getOutcome(100, $dedicationList); + $outcome = Util::valueFit(getOutcome(100, $dedicationList), 1); $bill = intval($income / $outcome * 90); // 수입의 90% 만 지급 if ($nation['rice'] + $income - $outcome > $this->nationPolicy->reqNationRice * 2) { -- 2.54.0 From d8f4056f46348f6c7debfb8bd7463b1aa4e4193f Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 15:13:39 +0900 Subject: [PATCH 21/25] =?UTF-8?q?fix:=20=EC=A0=84=ED=88=AC=EB=A0=A5?= =?UTF-8?q?=EB=B3=B4=EC=A0=95=EC=97=90=20unit=EC=9D=B4=20=EC=A0=9C?= =?UTF-8?q?=EA=B3=B5=EB=90=98=EC=A7=80=20=EC=95=8A=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_불굴_상편.php | 2 +- hwe/sammo/ActionItem/che_상성보정_과실주.php | 5 +---- hwe/sammo/WarUnitTrigger/전투력보정.php | 3 ++- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hwe/sammo/ActionItem/che_불굴_상편.php b/hwe/sammo/ActionItem/che_불굴_상편.php index 3be6e233..854553b8 100644 --- a/hwe/sammo/ActionItem/che_불굴_상편.php +++ b/hwe/sammo/ActionItem/che_불굴_상편.php @@ -25,7 +25,7 @@ class che_불굴_상편 extends \sammo\BaseItem $crewRatio = Util::valueFit($crew / ($leadership * 100), 0, 1); return new WarUnitTriggerCaller( - new 전투력보정(1 + 0.5 * (1 - $crewRatio)) + new 전투력보정($unit, 1 + 0.5 * (1 - $crewRatio)) ); } } diff --git a/hwe/sammo/ActionItem/che_상성보정_과실주.php b/hwe/sammo/ActionItem/che_상성보정_과실주.php index da416aad..9ac09829 100644 --- a/hwe/sammo/ActionItem/che_상성보정_과실주.php +++ b/hwe/sammo/ActionItem/che_상성보정_과실주.php @@ -17,15 +17,12 @@ class che_상성보정_과실주 extends \sammo\BaseItem{ public function getBattlePhaseSkillTriggerList(WarUnit $unit): ?WarUnitTriggerCaller { $oppose = $unit->getOppose(); - if($oppose === null){ - return null; - } $attackCoef = $unit->getCrewType()->getAttackCoef($oppose->getCrewType()); if($attackCoef <= 1){ return null; } return new WarUnitTriggerCaller( - new 전투력보정(1.1, 0.9) + new 전투력보정($unit, 1.1, 0.9) ); } } diff --git a/hwe/sammo/WarUnitTrigger/전투력보정.php b/hwe/sammo/WarUnitTrigger/전투력보정.php index b40a85fe..a06931de 100644 --- a/hwe/sammo/WarUnitTrigger/전투력보정.php +++ b/hwe/sammo/WarUnitTrigger/전투력보정.php @@ -10,7 +10,8 @@ use sammo\ObjectTrigger; class 전투력보정 extends BaseWarUnitTrigger{ protected $priority = ObjectTrigger::PRIORITY_BEGIN; - public function __construct(protected int|float $attackerWarPowerMultiplier, protected int|float $defenderWarPowerMultiplier = 1){ + public function __construct(WarUnit $unit, protected int|float $attackerWarPowerMultiplier, protected int|float $defenderWarPowerMultiplier = 1){ + $this->object = $unit; } protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{ -- 2.54.0 From eb6b7ce84a1567eac8036a700193deab2f06c6dd Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 20 Feb 2022 15:31:52 +0900 Subject: [PATCH 22/25] =?UTF-8?q?fix:=20=EC=95=84=EC=9D=B4=ED=85=9C=20?= =?UTF-8?q?=ED=8C=90=EB=A7=A4=EC=8B=9C=20=EC=97=90=EB=9F=AC=20=EB=B0=A9?= =?UTF-8?q?=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/General.php | 1 + 1 file changed, 1 insertion(+) diff --git a/hwe/sammo/General.php b/hwe/sammo/General.php index b5027204..21f16585 100644 --- a/hwe/sammo/General.php +++ b/hwe/sammo/General.php @@ -183,6 +183,7 @@ class General implements iAction { if ($itemCode === null) { $this->deleteItem($itemKey); + return; } $this->setVar($itemKey, $itemCode); -- 2.54.0 From ea50e537185f625c6f08ca9274adf5106fea690a Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 22 Feb 2022 00:14:20 +0900 Subject: [PATCH 23/25] =?UTF-8?q?game:=20=EB=B0=98=EA=B3=84=EB=8F=84?= =?UTF-8?q?=EA=B5=AC=20=EC=A0=9C=EA=B1=B0,=20=EB=8F=84=EA=B5=AC=20?= =?UTF-8?q?=EB=B0=B8=EB=9F=B0=EC=8A=A4=20=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func.php | 4 +++- ...피저지_노군입산부.php => che_간파_노군입산부.php} | 11 +++++++---- hwe/sammo/ActionItem/che_격노_구정신단경.php | 7 +------ hwe/sammo/ActionItem/che_농성_위공자병법.php | 5 +++++ hwe/sammo/ActionItem/che_농성_주서음부.php | 5 +++++ hwe/sammo/ActionItem/che_능력치_무력_두강주.php | 2 +- hwe/sammo/ActionItem/che_능력치_지력_이강주.php | 2 +- hwe/sammo/ActionItem/che_능력치_통솔_보령압주.php | 2 +- hwe/sammo/ActionItem/che_부적_태현청생부.php | 8 ++++++++ hwe/sammo/ActionItem/che_약탈_옥벽.php | 4 ++-- hwe/sammo/ActionItem/che_저지_삼황내문.php | 12 +++++++++--- hwe/sammo/ActionItem/che_집중_전국책.php | 7 ++----- hwe/sammo/ActionItem/che_징병_낙주.php | 4 ++-- hwe/sammo/ActionItem/che_필살_둔갑천서.php | 4 ++-- hwe/sammo/ActionItem/che_환술_논어집해.php | 7 ++----- hwe/sammo/ActionItem/che_회피_태평요술.php | 4 ++-- hwe/sammo/GameConstBase.php | 6 +++--- 17 files changed, 56 insertions(+), 38 deletions(-) rename hwe/sammo/ActionItem/{che_회피저지_노군입산부.php => che_간파_노군입산부.php} (52%) diff --git a/hwe/func.php b/hwe/func.php index 7421d05d..d0146916 100644 --- a/hwe/func.php +++ b/hwe/func.php @@ -2415,7 +2415,9 @@ function SabotageInjury(array $cityGeneralList, string $reason): int foreach ($cityGeneralList as $general) { /** @var General $general */ - if (!Util::randBool(0.3)) { + $injuryProb = 0.3; + $injuryProb = $general->onCalcStat($general, 'injuryProb', $injuryProb); + if (!Util::randBool($injuryProb)) { continue; } $general->getLogger()->pushGeneralActionLog($text); diff --git a/hwe/sammo/ActionItem/che_회피저지_노군입산부.php b/hwe/sammo/ActionItem/che_간파_노군입산부.php similarity index 52% rename from hwe/sammo/ActionItem/che_회피저지_노군입산부.php rename to hwe/sammo/ActionItem/che_간파_노군입산부.php index 304f774a..fdc68688 100644 --- a/hwe/sammo/ActionItem/che_회피저지_노군입산부.php +++ b/hwe/sammo/ActionItem/che_간파_노군입산부.php @@ -3,17 +3,20 @@ namespace sammo\ActionItem; use \sammo\iAction; use \sammo\General; -class che_회피저지_노군입산부 extends \sammo\BaseItem{ +class che_간파_노군입산부 extends \sammo\BaseItem{ protected $rawName = '노군입산부'; - protected $name = '노군입산부(회피저지)'; - protected $info = '[전투] 상대 회피 확률 -15%p'; + protected $name = '노군입산부(간파)'; + protected $info = '[전투] 상대 회피 확률 -30%p, 상대 필살 확률 -10%p'; protected $cost = 200; protected $consumable = false; public function onCalcOpposeStat(General $general, string $statName, $value, $aux=null){ if($statName === 'warAvoidRatio'){ - return $value - 0.15; + return $value - 0.30; + } + if($statName === 'warCriticalRatio'){ + return $value - 0.10; } return $value; } diff --git a/hwe/sammo/ActionItem/che_격노_구정신단경.php b/hwe/sammo/ActionItem/che_격노_구정신단경.php index f5fece19..0c53de37 100644 --- a/hwe/sammo/ActionItem/che_격노_구정신단경.php +++ b/hwe/sammo/ActionItem/che_격노_구정신단경.php @@ -12,15 +12,10 @@ class che_격노_구정신단경 extends \sammo\BaseItem{ protected $rawName = '구정신단경'; protected $name = '구정신단경(격노)'; - protected $info = '[전투] 상대방 필살 시 격노(필살) 발동, 회피 시도시 25% 확률로 격노 발동, 공격 시 일정 확률로 진노(1페이즈 추가), 격노마다 대미지 20% 추가 중첩'; + protected $info = '[전투] 상대방 필살 시 격노(필살) 발동, 회피 시도시 25% 확률로 격노 발동, 공격 시 일정 확률로 진노(1페이즈 추가)'; protected $cost = 200; protected $consumable = false; - public function getWarPowerMultiplier(WarUnit $unit):array{ - $activatedCnt = $unit->hasActivatedSkillOnLog('격노'); - return [1 + 0.2*$activatedCnt, 1]; - } - public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{ return new WarUnitTriggerCaller( new che_격노시도($unit, che_격노시도::TYPE_ITEM), diff --git a/hwe/sammo/ActionItem/che_농성_위공자병법.php b/hwe/sammo/ActionItem/che_농성_위공자병법.php index 4b942b9f..3645a2d0 100644 --- a/hwe/sammo/ActionItem/che_농성_위공자병법.php +++ b/hwe/sammo/ActionItem/che_농성_위공자병법.php @@ -16,6 +16,11 @@ class che_농성_위공자병법 extends \sammo\BaseItem{ if($statName === 'sabotageDefence'){ return $value + 0.3; } + return $value; + } + + public function onCalcOpposeStat(General $general, string $statName, $value, $aux = null) + { if($statName === 'warMagicTrialProb'){ return $value - 0.1; } diff --git a/hwe/sammo/ActionItem/che_농성_주서음부.php b/hwe/sammo/ActionItem/che_농성_주서음부.php index 76fea855..7723618e 100644 --- a/hwe/sammo/ActionItem/che_농성_주서음부.php +++ b/hwe/sammo/ActionItem/che_농성_주서음부.php @@ -16,6 +16,11 @@ class che_농성_주서음부 extends \sammo\BaseItem{ if($statName === 'sabotageDefence'){ return $value + 0.3; } + return $value; + } + + public function onCalcOpposeStat(General $general, string $statName, $value, $aux = null) + { if($statName === 'warMagicTrialProb'){ return $value - 0.1; } diff --git a/hwe/sammo/ActionItem/che_능력치_무력_두강주.php b/hwe/sammo/ActionItem/che_능력치_무력_두강주.php index 8dda7371..b251f9b2 100644 --- a/hwe/sammo/ActionItem/che_능력치_무력_두강주.php +++ b/hwe/sammo/ActionItem/che_능력치_무력_두강주.php @@ -12,7 +12,7 @@ class che_능력치_무력_두강주 extends \sammo\BaseItem{ protected $rawName = '두강주'; protected $name = '두강주(무력)'; - protected $info = '[능력치] 무력 보정 +5 + (5년마다 +1)'; + protected $info = '[능력치] 무력 +5 +(5년마다 +1)'; protected $cost = 200; protected $consumable = false; diff --git a/hwe/sammo/ActionItem/che_능력치_지력_이강주.php b/hwe/sammo/ActionItem/che_능력치_지력_이강주.php index 66f88b4c..9c74ffb4 100644 --- a/hwe/sammo/ActionItem/che_능력치_지력_이강주.php +++ b/hwe/sammo/ActionItem/che_능력치_지력_이강주.php @@ -12,7 +12,7 @@ class che_능력치_지력_이강주 extends \sammo\BaseItem{ protected $rawName = '이강주'; protected $name = '이강주(지력)'; - protected $info = '[능력치] 지력 보정 +5 + (5년마다 +1)'; + protected $info = '[능력치] 지력 +5 +(5년마다 +1)'; protected $cost = 200; protected $consumable = false; diff --git a/hwe/sammo/ActionItem/che_능력치_통솔_보령압주.php b/hwe/sammo/ActionItem/che_능력치_통솔_보령압주.php index f075e6f3..7ebb29ed 100644 --- a/hwe/sammo/ActionItem/che_능력치_통솔_보령압주.php +++ b/hwe/sammo/ActionItem/che_능력치_통솔_보령압주.php @@ -12,7 +12,7 @@ class che_능력치_통솔_보령압주 extends \sammo\BaseItem{ protected $rawName = '보령압주'; protected $name = '보령압주(통솔)'; - protected $info = '[능력치] 통솔 보정 +5 + (5년마다 +1)'; + protected $info = '[능력치] 통솔 +5 +(5년마다 +1)'; protected $cost = 200; protected $consumable = false; diff --git a/hwe/sammo/ActionItem/che_부적_태현청생부.php b/hwe/sammo/ActionItem/che_부적_태현청생부.php index fd66bba7..004380b8 100644 --- a/hwe/sammo/ActionItem/che_부적_태현청생부.php +++ b/hwe/sammo/ActionItem/che_부적_태현청생부.php @@ -21,6 +21,14 @@ class che_부적_태현청생부 extends \sammo\BaseItem protected $cost = 200; protected $consumable = false; + public function onCalcStat(General $general, string $statName, $value, $aux = null) + { + if($statName === 'injuryProb'){ + return $value -= 1; + } + return $value; + } + public function getBattleInitSkillTriggerList(WarUnit $unit): ?WarUnitTriggerCaller { return new WarUnitTriggerCaller( diff --git a/hwe/sammo/ActionItem/che_약탈_옥벽.php b/hwe/sammo/ActionItem/che_약탈_옥벽.php index de7047bf..90ed50c2 100644 --- a/hwe/sammo/ActionItem/che_약탈_옥벽.php +++ b/hwe/sammo/ActionItem/che_약탈_옥벽.php @@ -11,13 +11,13 @@ class che_약탈_옥벽 extends \sammo\BaseItem{ protected $rawName = '옥벽'; protected $name = '옥벽(약탈)'; - protected $info = '[전투] 새로운 상대와 전투 시 10% 확률로 상대 금, 쌀 10% 약탈'; + protected $info = '[전투] 새로운 상대와 전투 시 20% 확률로 상대 금, 쌀 10% 약탈'; protected $cost = 200; protected $consumable = false; public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{ return new WarUnitTriggerCaller( - new che_약탈시도($unit, che_약탈시도::TYPE_ITEM, 0.1, 0.1), + new che_약탈시도($unit, che_약탈시도::TYPE_ITEM, 0.2, 0.1), new che_약탈발동($unit, che_약탈발동::TYPE_ITEM) ); } diff --git a/hwe/sammo/ActionItem/che_저지_삼황내문.php b/hwe/sammo/ActionItem/che_저지_삼황내문.php index b0497b59..19576c22 100644 --- a/hwe/sammo/ActionItem/che_저지_삼황내문.php +++ b/hwe/sammo/ActionItem/che_저지_삼황내문.php @@ -2,21 +2,27 @@ namespace sammo\ActionItem; use sammo\BaseWarUnitTrigger; +use sammo\Util; use sammo\WarUnit; use sammo\WarUnitTrigger\che_저지발동; use sammo\WarUnitTrigger\WarActivateSkills; use sammo\WarUnitTriggerCaller; class che_저지_삼황내문 extends \sammo\BaseItem{ - protected $rawName = '삼황내문'; protected $name = '삼황내문(저지)'; - protected $info = '[전투] 수비 시 저지'; + protected $info = '[전투] 수비 시 첫 페이즈 저지, 50% 확률로 2 페이즈 저지'; protected $cost = 200; protected $consumable = false; public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{ - if($unit->getPhase() != 0){ + if($unit->isAttacker()){ + return null; + } + if($unit->getPhase() >= 2){ + return null; + } + if($unit->getPhase() == 1 && Util::randBool(0.5)){ return null; } diff --git a/hwe/sammo/ActionItem/che_집중_전국책.php b/hwe/sammo/ActionItem/che_집중_전국책.php index c3185c41..641996ba 100644 --- a/hwe/sammo/ActionItem/che_집중_전국책.php +++ b/hwe/sammo/ActionItem/che_집중_전국책.php @@ -8,17 +8,14 @@ class che_집중_전국책 extends \sammo\BaseItem { protected $rawName = '전국책'; protected $name = '전국책(집중)'; - protected $info = '[전투] 계략 성공 시 대미지 +50%, 공격 시 페이즈 -1'; + protected $info = '[전투] 계략 성공 시 대미지 +30%'; protected $cost = 200; protected $consumable = false; public function onCalcStat(General $general, string $statName, $value, $aux = null) { - if ($statName === 'initWarPhase') { - return $value - 1; - } if ($statName === 'warMagicSuccessDamage') { - return $value * 1.5; + return $value * 1.3; } return $value; } diff --git a/hwe/sammo/ActionItem/che_징병_낙주.php b/hwe/sammo/ActionItem/che_징병_낙주.php index 271bdf3c..8b3b4d89 100644 --- a/hwe/sammo/ActionItem/che_징병_낙주.php +++ b/hwe/sammo/ActionItem/che_징병_낙주.php @@ -9,7 +9,7 @@ class che_징병_낙주 extends \sammo\BaseItem{ protected $rawName = '낙주'; protected $name = '낙주(징병)'; - protected $info = '[군사] 징·모병비 -50%, 통솔 순수 능력치 보정 +25%'; + protected $info = '[군사] 징·모병비 -50%, 통솔 순수 능력치 보정 +15%'; protected $cost = 200; protected $consumable = false; @@ -23,7 +23,7 @@ class che_징병_낙주 extends \sammo\BaseItem{ public function onCalcStat(General $general, string $statName, $value, $aux=null){ if($statName === 'leadership'){ - return $value + $general->getVar('leadership') * 0.25; + return $value + $general->getVar('leadership') * 0.15; } return $value; } diff --git a/hwe/sammo/ActionItem/che_필살_둔갑천서.php b/hwe/sammo/ActionItem/che_필살_둔갑천서.php index e076930e..98b4b404 100644 --- a/hwe/sammo/ActionItem/che_필살_둔갑천서.php +++ b/hwe/sammo/ActionItem/che_필살_둔갑천서.php @@ -7,13 +7,13 @@ class che_필살_둔갑천서 extends \sammo\BaseItem{ protected $rawName = '둔갑천서'; protected $name = '둔갑천서(필살)'; - protected $info = '[전투] 필살 확률 +20%p'; + protected $info = '[전투] 필살 확률 +25%p'; protected $cost = 200; protected $consumable = false; public function onCalcStat(General $general, string $statName, $value, $aux=null){ if($statName === 'warCriticalRatio'){ - return $value + 0.2; + return $value + 0.25; } return $value; } diff --git a/hwe/sammo/ActionItem/che_환술_논어집해.php b/hwe/sammo/ActionItem/che_환술_논어집해.php index 1c3ec5ea..db4a6e54 100644 --- a/hwe/sammo/ActionItem/che_환술_논어집해.php +++ b/hwe/sammo/ActionItem/che_환술_논어집해.php @@ -8,20 +8,17 @@ class che_환술_논어집해 extends \sammo\BaseItem { protected $rawName = '논어집해'; protected $name = '논어집해(환술)'; - protected $info = '[전투] 계략 성공 확률 +10%p, 계략 성공 시 대미지 +30%, 공격 시 페이즈 -1'; + protected $info = '[전투] 계략 성공 확률 +10%p, 계략 성공 시 대미지 +20%'; protected $cost = 200; protected $consumable = false; public function onCalcStat(General $general, string $statName, $value, $aux = null) { - if ($statName === 'initWarPhase') { - return $value - 1; - } if ($statName === 'warMagicSuccessProb') { return $value + 0.1; } if ($statName === 'warMagicSuccessDamage') { - return $value * 1.3; + return $value * 1.2; } return $value; } diff --git a/hwe/sammo/ActionItem/che_회피_태평요술.php b/hwe/sammo/ActionItem/che_회피_태평요술.php index e13880fb..7903d3e8 100644 --- a/hwe/sammo/ActionItem/che_회피_태평요술.php +++ b/hwe/sammo/ActionItem/che_회피_태평요술.php @@ -7,13 +7,13 @@ class che_회피_태평요술 extends \sammo\BaseItem{ protected $rawName = '태평요술'; protected $name = '태평요술(회피)'; - protected $info = '[전투] 회피 확률 +15%p'; + protected $info = '[전투] 회피 확률 +20%p'; protected $cost = 200; protected $consumable = false; public function onCalcStat(General $general, string $statName, $value, $aux=null){ if($statName === 'warAvoidRatio'){ - return $value + 0.15; + return $value + 0.20; } return $value; } diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index 0ca2711f..11b97f7d 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -256,11 +256,11 @@ class GameConstBase 'che_내정_납금박산로' => 1, 'che_전략_평만지장도' => 1, 'che_숙련_동작' => 1, 'che_명성_구석' => 1, 'che_척사_오악진형도' => 1, 'che_격노_구정신단경' => 1, 'che_징병_낙주' => 1, - 'che_저격_매화수전' => 1, 'che_위압_조목삭' => 1, 'che_공성_묵자' => 1, - 'che_반계_백우선' => 1, 'che_집중_전국책' => 1, 'che_환술_논어집해' => 1, + 'che_저격_매화수전' => 1, 'che_저격_비도'=>1, 'che_위압_조목삭' => 1, 'che_공성_묵자' => 1, + 'che_집중_전국책' => 1, 'che_환술_논어집해' => 1, 'che_반계저지_박혁론' => 1, 'che_부적_태현청생부' => 1, 'che_저지_삼황내문' => 1, - 'che_행동_서촉지형도' => 1, 'che_회피저지_노군입산부' => 1, 'che_불굴_상편' => 1, + 'che_행동_서촉지형도' => 1, 'che_간파_노군입산부' => 1, 'che_불굴_상편' => 1, 'che_약탈_옥벽' => 1, 'che_농성_주서음부' => 1, 'che_농성_위공자병법' => 1, -- 2.54.0 From 1fa0cf8d32b2bf976ca91403f409fdc941d14651 Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 22 Feb 2022 00:28:35 +0900 Subject: [PATCH 24/25] =?UTF-8?q?game:=20=EC=9E=91=EC=9C=84=20=EB=B3=B4?= =?UTF-8?q?=EC=83=81=EC=97=90=EC=84=9C=20=EC=95=84=EC=9D=B4=ED=85=9C?= =?UTF-8?q?=EC=9D=B4=20=EC=97=86=EB=8A=94=20=EC=82=AC=EB=9E=8C=EC=9D=B4=20?= =?UTF-8?q?=EB=B0=9B=EC=9D=84=20=ED=99=95=EB=A5=A0=20=EB=8C=80=ED=8F=AD=20?= =?UTF-8?q?=EC=A6=9D=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_gamerule.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hwe/func_gamerule.php b/hwe/func_gamerule.php index b97d230c..af09524d 100644 --- a/hwe/func_gamerule.php +++ b/hwe/func_gamerule.php @@ -673,17 +673,17 @@ function updateNationState() continue; } - $score = $nationGen->getVar('belong') + 5; + $score = $nationGen->getVar('belong') + 10; if ($nationGen->getVar('officer_level') == 12) { - $score += 100; //NOTE: 꼬우면 군주하세요. + $score += 60; } else if ($nationGen->getVar('officer_level') == 11) { - $score += 50; + $score += 30; } else if ($nationGen->getVar('officer_level') > 4) { - $score += 35; + $score += 15; } - $score *= $trialCnt; + $score *= 2**$trialCnt; $uniqueLotteryWeightList[$nationGen->getID()] = [$nationGen, $score]; } -- 2.54.0 From 06959db5e583c6df002e1fb9f8f7a5d84c93c669 Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 22 Feb 2022 00:43:22 +0900 Subject: [PATCH 25/25] =?UTF-8?q?game:=20=ED=8F=89=EC=8B=9C=20=EC=9C=A0?= =?UTF-8?q?=EB=8B=88=ED=81=AC=20=ED=9A=8D=EB=93=9D=20=ED=99=95=EB=A5=A0=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/func.php b/hwe/func.php index d0146916..74a29aea 100644 --- a/hwe/func.php +++ b/hwe/func.php @@ -1937,8 +1937,8 @@ function tryUniqueItemLottery(General $general, string $acquireType = '아이템 $prob = Util::valueFit($prob, null, 1 / 4); //최대치 감소 $result = false; - $prob /= sqrt(2); - $moreProb = pow(2, 1 / 4); + $prob /= sqrt(7); + $moreProb = pow(10, 1 / 4); if ($general->getAuxVar('inheritRandomUnique') && $availableBuyUnique) { //포인트로 랜덤 유니크 획득 -- 2.54.0