diff --git a/hwe/sammo/ActionScenarioEffect/event_MoreEffect.php b/hwe/sammo/ActionScenarioEffect/event_MoreEffect.php new file mode 100644 index 00000000..dc378b7a --- /dev/null +++ b/hwe/sammo/ActionScenarioEffect/event_MoreEffect.php @@ -0,0 +1,68 @@ +isAttacker()) { + return [1.4, 0.7143]; + } + return [1, 1]; + } + + public function onCalcDomestic(string $turnType, string $varType, float $value, $aux = null): float + { + $scoreMap = [ + '상업' => 2, + '농업' => 2, + '치안' => 2, + '기술' => 2, + '성벽' => 2, + '수비' => 2, + '인구' => 2, + '민심' => 2, + ]; + if ($turnType == 'changeDefenceTrain') { + return 0; + } + if ($varType === 'score' && key_exists($turnType, $scoreMap)) { + $multiplier = $scoreMap[$turnType]; + $value *= $multiplier; + return $value; + } + + return $value; + } + + public function onCalcNationalIncome(string $type, $amount){ + if($type == 'gold'){ + return $amount * 2; + } + if($type == 'rice'){ + return $amount * 2; + } + if($type == 'pop' && $amount > 0){ + return $amount * 2; + } + + return $amount; + } + + public function getBattlePhaseSkillTriggerList(\sammo\WarUnit $unit): ?WarUnitTriggerCaller + { + return new WarUnitTriggerCaller( + new che_전멸시페이즈증가($unit), + ); + } +} diff --git a/hwe/scenario/scenario_913.json b/hwe/scenario/scenario_913.json new file mode 100644 index 00000000..ccbc9cda --- /dev/null +++ b/hwe/scenario/scenario_913.json @@ -0,0 +1,188 @@ +{ + "title":"【공백지】 무한대흥 ", + "startYear":180, + "map":{ + "mapName":"miniche" + }, + "history":[ + "●180년 1월:【이벤트】많은 제한치가 더 높게 풀려있습니다." + ], + "const": { + "joinRuinedNPCProp":0, + "npcBanMessageProb":1, + "scenarioEffect": "event_MoreEffect", + "availableInstantAction": { + "instantRetreat": true + }, + "defaultMaxGeneral": 800, + "basePopIncreaseAmount": 10000, + "maxTechLevel": 15, + "upgradeLimit": 20, + "initialAllowedTechLevel": 2, + "expandCityPopIncreaseAmount": 150000, + "expandCityDevelIncreaseAmount": 3000, + "expandCityWallIncreaseAmount": 3000, + "maxResourceActionAmount": 30000, + "resourceActionAmountGuide": [ + 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, + 1200, 1500, 2000, 2500, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, + 12000, 15000, 20000, 25000, 30000 + ], + "allItems": { + "horse" : { + "che_명마_01_노기" : 0, "che_명마_02_조랑" : 0, "che_명마_03_노새" : 0, + "che_명마_04_나귀" : 0, "che_명마_05_갈색마" : 0, "che_명마_06_흑색마" : 0, + + "che_명마_07_백마" : 4, "che_명마_07_기주마" : 4, "che_명마_07_오환마" : 4, "che_명마_07_백상" : 4, + "che_명마_08_양주마" : 4, "che_명마_08_흉노마" : 4, "che_명마_09_과하마" : 4, "che_명마_09_의남백마" : 4, + "che_명마_10_대완마" : 4, "che_명마_10_옥추마" : 4, "che_명마_11_서량마" : 4, "che_명마_11_화종마" : 4, + "che_명마_12_사륜거" : 4, "che_명마_12_옥란백용구": 4, "che_명마_13_절영" : 4, "che_명마_13_적로" : 4, + "che_명마_14_적란마" : 4, "che_명마_14_조황비전" : 4, "che_명마_15_한혈마" : 4, "che_명마_15_적토마" : 4 + }, + "weapon" : { + "che_무기_01_단도" : 0, "che_무기_02_단궁" : 0, "che_무기_03_단극" : 0, + "che_무기_04_목검" : 0, "che_무기_05_죽창" : 0, "che_무기_06_소부" : 0, + + "che_무기_07_동추" : 4, "che_무기_07_철편" : 4, "che_무기_07_철쇄" : 4, "che_무기_07_맥궁" : 4, + "che_무기_08_유성추" : 4, "che_무기_08_철질여골" : 4, "che_무기_09_쌍철극" : 4, "che_무기_09_동호비궁" : 4, + "che_무기_10_삼첨도" : 4, "che_무기_10_대부" : 4, "che_무기_11_고정도" : 4, "che_무기_11_이광궁" : 4, + "che_무기_12_철척사모" : 4, "che_무기_12_칠성검" : 4, "che_무기_13_사모" : 4, "che_무기_13_양유기궁" : 4, + "che_무기_14_언월도" : 4, "che_무기_14_방천화극" : 4, "che_무기_15_청홍검" : 4, "che_무기_15_의천검" : 4 + }, + "book" : { + "che_서적_01_효경전" : 0, "che_서적_02_회남자" : 0, "che_서적_03_변도론" : 0, + "che_서적_04_건상역주" : 0, "che_서적_05_여씨춘추" : 0, "che_서적_06_사민월령" : 0, + + "che_서적_07_위료자" : 4, "che_서적_07_사마법" : 4, "che_서적_07_한서" : 4, "che_서적_07_논어" : 4, + "che_서적_08_전론" : 4, "che_서적_08_사기" : 4, "che_서적_09_장자" : 4, "che_서적_09_역경" : 4, + "che_서적_10_시경" : 4, "che_서적_10_구국론" : 4, "che_서적_11_상군서" : 4, "che_서적_11_춘추전" : 4, + "che_서적_12_산해경" : 4, "che_서적_12_맹덕신서" : 4, "che_서적_13_관자" : 4, "che_서적_13_병법24편" : 4, + "che_서적_14_한비자" : 4, "che_서적_14_오자병법" : 4, "che_서적_15_노자" : 4, "che_서적_15_손자병법" : 4 + }, + "item": { + "che_치료_환약": 0, + "che_저격_수극": 0, + "che_사기_탁주": 0, + "che_훈련_청주": 0, + "che_계략_이추": 0, + "che_계략_향낭": 0, + + "event_전투특기_격노": 0, + "event_전투특기_견고": 0, + "event_전투특기_공성": 0, + "event_전투특기_궁병": 0, + "event_전투특기_귀병": 0, + "event_전투특기_기병": 0, + "event_전투특기_돌격": 0, + "event_전투특기_무쌍": 0, + "event_전투특기_반계": 0, + "event_전투특기_보병": 0, + "event_전투특기_신산": 0, + "event_전투특기_신중": 0, + "event_전투특기_위압": 0, + "event_전투특기_의술": 0, + "event_전투특기_저격": 0, + "event_전투특기_집중": 0, + "event_전투특기_징병": 0, + "event_전투특기_척사": 0, + "event_전투특기_필살": 0, + "event_전투특기_환술": 0 + } + } + }, + "initialEvents":[ + [ + true, + ["ChangeCity", ["cities", "낙양", "성도", "건업", "업", "장안", "허창", "양양"], { + "pop_max": "+300000", + "agri_max": "+6000", + "comm_max": "+6000", + "secu_max": "+5000", + "def_max": "+6000", + "wall_max": "+6000" + }], + ["ChangeCity", ["cities", "시상", "수춘", "한중", "남피", "위례", "북평", "강릉", "완", "장사"], { + "pop_max": "+250000", + "agri_max": "+5000", + "comm_max": "+5000", + "secu_max": "+4000", + "def_max": "+5000", + "wall_max": "+5000" + }], + ["ChangeCity", ["cities", "오", "하비", "복양", "웅진", "강주", "무도", "국내", "진류", "계양", "계림", "계", "무위", "제남", "남해", "덕양", "하내", "상용"], { + "pop_max": "+200000", + "agri_max": "+4000", + "comm_max": "+4000", + "secu_max": "+3000", + "def_max": "+4000", + "wall_max": "+4000" + }], + ["ChangeCity", ["cities", "초", "운남", "대", "하동", "무릉", "교지", "단양", "영안", "북해", "건녕", "강하", "진양", "평원", "회계", "천수", "평양", "요동", "거록", "여강", "패", "자동", "광릉", "장가", "영릉", "월수", "건안", "신야", "상동", "안정", "여남", "홍농", "주제"], { + "pop_max": "+150000", + "agri_max": "+3000", + "comm_max": "+3000", + "secu_max": "+2000", + "def_max": "+3000", + "wall_max": "+3000" + }], + ["ChangeCity", ["cities", "남만", "산월", "오환", "강", "왜", "흉노"], { + "pop_max": "+100000", + "agri_max": "+2000", + "comm_max": "+2000", + "secu_max": "+1000", + "def_max": "+2000", + "wall_max": "+2000" + }], + ["ChangeCity", ["cities", "합비", "이릉", "오장원", "호로", "탐라", "적벽"], { + "pop_max": "+100000", + "agri_max": "+1000", + "comm_max": "+1000", + "secu_max": "+1000", + "def_max": "+1000", + "wall_max": "+1000" + }], + ["ChangeCity", "free", { + "pop":"50%" + }] + ] + ], + "events":[ + [ + "month", 1000, + ["or", ["Date", "==", null, 12], ["Date", "==", null, 6]], + ["CreateManyNPC", 15, 10], + ["DeleteEvent"] + ], + [ + "month", 1000, + ["Date", "==", 181, 1], + ["RaiseNPCNation"], + ["DeleteEvent"] + ], + [ + "month", 999, + ["Date", "==", 181, 1], + ["OpenNationBetting", 4, 5000], + ["OpenNationBetting", 1, 2000], + ["DeleteEvent"] + ], + [ + "month", 999, + ["and", + ["Date", ">=", 183, 1], + ["RemainNation", "<=", 8] + ], + ["OpenNationBetting", 1, 1000], + ["DeleteEvent"] + ], + [ + "destroy_nation", 1000, + ["and", + ["Date", ">=", 183, 1], + ["RemainNation", "==", 1] + ], + ["BlockScoutAction"], + ["DeleteEvent"] + ] + ] +} \ No newline at end of file