feat(WIP): processing 선양, 장수대상임관
This commit is contained in:
@@ -145,31 +145,17 @@ class che_선양 extends Command\GeneralCommand
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getForm(): string
|
|
||||||
{
|
|
||||||
//TODO: 암행부처럼 보여야...
|
|
||||||
$db = DB::db();
|
|
||||||
|
|
||||||
$destRawGenerals = $db->query('SELECT no,name,officer_level,npc FROM general WHERE nation != 0 AND nation = %i AND no != %i ORDER BY npc,binary(name)', $this->generalObj->getNationID(), $this->generalObj->getID());
|
public function exportJSVars(): array
|
||||||
ob_start();
|
{
|
||||||
?>
|
$db = DB::db();
|
||||||
군주의 자리를 다른 장수에게 물려줍니다.<br>
|
$destRawGenerals = $db->queryAllLists('SELECT no,name,officer_level,npc,leadership,strength,intel FROM general WHERE nation != 0 AND nation = %i AND no != %i ORDER BY npc,binary(name)', $this->generalObj->getNationID(), $this->generalObj->getID());
|
||||||
장수를 선택하세요.<br>
|
|
||||||
<select class='formInput' name="destGeneralID" id="destGeneralID" size='1' style='color:white;background-color:black;'>
|
return [
|
||||||
<?php foreach ($destRawGenerals as $destGeneral) :
|
'procRes' => [
|
||||||
$color = \sammo\getNameColor($destGeneral['npc']);
|
'generals' => $destRawGenerals,
|
||||||
if ($color) {
|
'generalsKey' => ['no', 'name', 'officerLevel', 'npc', 'leadership', 'strength', 'intel']
|
||||||
$color = " style='color:{$color}'";
|
]
|
||||||
}
|
];
|
||||||
$name = $destGeneral['name'];
|
|
||||||
if ($destGeneral['officer_level'] >= 5) {
|
|
||||||
$name = "*{$name}*";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<option value='<?= $destGeneral['no'] ?>' <?= $color ?>><?= $name ?></option>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</select> <input type=button id="commonSubmit" value="<?= $this->getName() ?>"><br>
|
|
||||||
<?php
|
|
||||||
return ob_get_clean();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -196,7 +196,6 @@ class che_임관 extends Command\GeneralCommand
|
|||||||
{
|
{
|
||||||
$generalObj = $this->generalObj;
|
$generalObj = $this->generalObj;
|
||||||
$nationID = $generalObj->getNationID();
|
$nationID = $generalObj->getNationID();
|
||||||
$testTurn = new LastTurn($this->getName(), null, $this->getPreReqTurn());
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
|
|
||||||
$rawNationList = Util::convertArrayToDict($db->query('SELECT nation,`name`,color,gennum,`power` FROM nation'), 'nation');
|
$rawNationList = Util::convertArrayToDict($db->query('SELECT nation,`name`,color,gennum,`power` FROM nation'), 'nation');
|
||||||
@@ -226,7 +225,7 @@ class che_임관 extends Command\GeneralCommand
|
|||||||
return [
|
return [
|
||||||
'mapTheme' => \sammo\getMapTheme(),
|
'mapTheme' => \sammo\getMapTheme(),
|
||||||
'procRes' => [
|
'procRes' => [
|
||||||
'nations' => $nationList,
|
'nationList' => $nationList,
|
||||||
'startYear' => $this->env['startyear'],
|
'startYear' => $this->env['startyear'],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ use \sammo\{
|
|||||||
KVStorage
|
KVStorage
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use function sammo\getAllNationStaticInfo;
|
||||||
use function \sammo\getColoredName;
|
use function \sammo\getColoredName;
|
||||||
use function \sammo\tryUniqueItemLottery;
|
use function \sammo\tryUniqueItemLottery;
|
||||||
use function \sammo\getInvitationList;
|
use function \sammo\getInvitationList;
|
||||||
@@ -21,8 +22,6 @@ use \sammo\Constraint\Constraint;
|
|||||||
use \sammo\Constraint\ConstraintHelper;
|
use \sammo\Constraint\ConstraintHelper;
|
||||||
use sammo\CityConst;
|
use sammo\CityConst;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class che_장수대상임관 extends Command\GeneralCommand{
|
class che_장수대상임관 extends Command\GeneralCommand{
|
||||||
static protected $actionName = '장수를 따라 임관';
|
static protected $actionName = '장수를 따라 임관';
|
||||||
static public $reqArg = true;
|
static public $reqArg = true;
|
||||||
@@ -186,65 +185,29 @@ class che_장수대상임관 extends Command\GeneralCommand{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getForm(): string
|
public function exportJSVars(): array
|
||||||
{
|
{
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
|
$destRawGenerals = $db->queryAllLists('SELECT no,name,nation,officer_level,npc,leadership,strength,intel FROM general WHERE no != %i ORDER BY npc,binary(name)', $this->generalObj->getID());
|
||||||
$generalObj = $this->generalObj;
|
$nationList = [];
|
||||||
|
|
||||||
$env = $this->env;
|
|
||||||
|
|
||||||
$joinedNations = $generalObj->getAuxVar('joinedNations')??[];
|
|
||||||
$generalList = $db->query('SELECT no,name,nation,npc FROM general WHERE no!=%i ORDER BY name ASC', $generalObj->getID());
|
|
||||||
|
|
||||||
|
|
||||||
$nationList = $db->query('SELECT nation,`name`,color,scout,gennum FROM nation');
|
|
||||||
shuffle($nationList);
|
|
||||||
$nationList = Util::convertArrayToDict($nationList, 'nation');
|
|
||||||
//NOTE: join 안할것임
|
|
||||||
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
||||||
foreach($scoutMsgs as $nationID=>$scoutMsg){
|
|
||||||
$nationList[$nationID]['scoutmsg'] = $scoutMsg;
|
foreach ([getNationStaticInfo(0), ...getAllNationStaticInfo()] as $destNation) {
|
||||||
|
$nationList[] = [
|
||||||
|
'id' => $destNation['nation'],
|
||||||
|
'name' => $destNation['name'],
|
||||||
|
'color' => $destNation['color'],
|
||||||
|
'power' => $destNation['power'],
|
||||||
|
'scoutMsg' => $scoutMsgs[$destNation['nation']]??' '
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
$hiddenItems = [];
|
return [
|
||||||
|
'procRes' => [
|
||||||
foreach($nationList as &$nation){
|
'nationList' => $nationList,
|
||||||
$nation['hideen'] = false;
|
'generals' => $destRawGenerals,
|
||||||
if($env['year'] < $env['startyear']+3 && $nation['gennum'] >= GameConst::$initialNationGenLimit){
|
'generalsKey' => ['no', 'name', 'nationID', 'officerLevel', 'npc', 'leadership', 'strength', 'intel']
|
||||||
$nation['availableJoin'] = false;
|
]
|
||||||
}
|
];
|
||||||
else if($nation['scout'] == 1) {
|
|
||||||
$nation['availableJoin'] = false;
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
$nation['availableJoin'] = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(in_array($nation['nation'], $joinedNations)){
|
|
||||||
$nation['availableJoin'] = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(Util::starts_with($nation['name'], 'ⓤ')){
|
|
||||||
$hiddenItems[$nation['nation']] = $nation['nation'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
unset($nation);
|
|
||||||
ob_start();
|
|
||||||
?>
|
|
||||||
장수를 따라 임관합니다.<br>
|
|
||||||
이미 임관/등용되었던 국가는 다시 임관할 수 없습니다.<br>
|
|
||||||
바로 군주의 위치로 이동합니다.<br>
|
|
||||||
임관할 국가를 목록에서 선택하세요.<br>
|
|
||||||
<select class='formInput' name="destGeneralID" id="destGeneralID" size='1' style='color:white;background-color:black;'>
|
|
||||||
<?php foreach($generalList as $targetGeneral): ?>
|
|
||||||
<?php if(key_exists($targetGeneral['nation'], $hiddenItems)){ continue; } ?>
|
|
||||||
<option value='<?=$targetGeneral['no']?>'><?=getColoredName($targetGeneral['name'],$targetGeneral['npc'])?>【<?=getNationStaticInfo($targetGeneral['nation'])['name']??'재야'?>】</option>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</select>
|
|
||||||
<input type=button id="commonSubmit" value="<?=$this->getName()?>">
|
|
||||||
<?=getInvitationList($nationList)?>
|
|
||||||
<?php
|
|
||||||
return ob_get_clean();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -40,13 +40,12 @@ import {
|
|||||||
procNationList,
|
procNationList,
|
||||||
} from "../processingRes";
|
} from "../processingRes";
|
||||||
import { getNpcColor } from "@/common_legacy";
|
import { getNpcColor } from "@/common_legacy";
|
||||||
declare const mapTheme: string;
|
|
||||||
declare const commandName: string;
|
declare const commandName: string;
|
||||||
|
|
||||||
declare const procRes: {
|
declare const procRes: {
|
||||||
generals: procGeneralRawItemList;
|
generals: procGeneralRawItemList;
|
||||||
generalsKey: procGeneralKey[];
|
generalsKey: procGeneralKey[];
|
||||||
nationList: procNationList,
|
nationList: procNationList;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@@ -81,12 +80,11 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const nationList = new Map<number, procNationItem>();
|
const nationList = new Map<number, procNationItem>();
|
||||||
for(const nationItem of procRes.nationList){
|
for (const nationItem of procRes.nationList) {
|
||||||
nationList.set(nationItem.id, nationItem);
|
nationList.set(nationItem.id, nationItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
mapTheme: ref(mapTheme),
|
|
||||||
selectedGeneralID,
|
selectedGeneralID,
|
||||||
generalList,
|
generalList,
|
||||||
nationList,
|
nationList,
|
||||||
|
|||||||
@@ -0,0 +1,91 @@
|
|||||||
|
<template>
|
||||||
|
<TopBackBar :title="commandName" type="chief" />
|
||||||
|
<div class="bg0">
|
||||||
|
<div v-if="commandName == '등용'">
|
||||||
|
재야나 타국의 장수를 등용합니다.<br />
|
||||||
|
서신은 개인 메세지로 전달됩니다.<br />
|
||||||
|
등용할 장수를 목록에서 선택하세요.<br />
|
||||||
|
</div>
|
||||||
|
<div v-if="commandName == '선양'">
|
||||||
|
군주의 자리를 다른 장수에게 물려줍니다.<br />
|
||||||
|
장수를 선택하세요.<br />
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12 col-md-6">
|
||||||
|
장수 :
|
||||||
|
<GeneralSelect
|
||||||
|
:generals="generalList"
|
||||||
|
:textHelper="textHelpGeneral"
|
||||||
|
v-model="selectedGeneralID"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 col-md-2 d-grid">
|
||||||
|
<b-button variant="primary" @click="submit">{{ commandName }}</b-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<BottomBar :title="commandName" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
import GeneralSelect from "@/processing/GeneralSelect.vue";
|
||||||
|
import { defineComponent, ref } from "vue";
|
||||||
|
import { unwrap } from "@/util/unwrap";
|
||||||
|
import { Args } from "@/processing/args";
|
||||||
|
import TopBackBar from "@/components/TopBackBar.vue";
|
||||||
|
import BottomBar from "@/components/BottomBar.vue";
|
||||||
|
import {
|
||||||
|
convertGeneralList,
|
||||||
|
procGeneralItem,
|
||||||
|
procGeneralKey,
|
||||||
|
procGeneralRawItemList,
|
||||||
|
} from "../processingRes";
|
||||||
|
import { getNpcColor } from "@/common_legacy";
|
||||||
|
declare const commandName: string;
|
||||||
|
|
||||||
|
declare const procRes: {
|
||||||
|
generals: procGeneralRawItemList;
|
||||||
|
generalsKey: procGeneralKey[];
|
||||||
|
};
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
components: {
|
||||||
|
GeneralSelect,
|
||||||
|
TopBackBar,
|
||||||
|
BottomBar,
|
||||||
|
},
|
||||||
|
setup() {
|
||||||
|
const generalList = convertGeneralList(
|
||||||
|
procRes.generalsKey,
|
||||||
|
procRes.generals
|
||||||
|
);
|
||||||
|
|
||||||
|
const selectedGeneralID = ref(generalList[0].no);
|
||||||
|
|
||||||
|
function textHelpGeneral(gen: procGeneralItem): string {
|
||||||
|
const nameColor = getNpcColor(gen.npc);
|
||||||
|
const name = nameColor
|
||||||
|
? `<span style="color:${nameColor}">${gen.name}</span>`
|
||||||
|
: gen.name;
|
||||||
|
return `${name} (${gen.leadership}/${gen.strength}/${gen.leadership})`;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function submit(e: Event) {
|
||||||
|
const event = new CustomEvent<Args>("customSubmit", {
|
||||||
|
detail: {
|
||||||
|
destGeneralID: selectedGeneralID.value,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
unwrap(e.target).dispatchEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
selectedGeneralID,
|
||||||
|
generalList,
|
||||||
|
commandName,
|
||||||
|
textHelpGeneral,
|
||||||
|
submit,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -55,12 +55,10 @@ import TopBackBar from "@/components/TopBackBar.vue";
|
|||||||
import BottomBar from "@/components/BottomBar.vue";
|
import BottomBar from "@/components/BottomBar.vue";
|
||||||
import { procNationItem, procNationList } from "../processingRes";
|
import { procNationItem, procNationList } from "../processingRes";
|
||||||
import { isBrightColor } from "@/util/isBrightColor";
|
import { isBrightColor } from "@/util/isBrightColor";
|
||||||
declare const mapTheme: string;
|
|
||||||
declare const commandName: string;
|
declare const commandName: string;
|
||||||
|
|
||||||
declare const procRes: {
|
declare const procRes: {
|
||||||
nations: procNationList;
|
nationList: procNationList;
|
||||||
startYear: number;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@@ -71,12 +69,11 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const nations = new Map<number, procNationItem>();
|
const nations = new Map<number, procNationItem>();
|
||||||
for (const nationItem of procRes.nations) {
|
for (const nationItem of procRes.nationList) {
|
||||||
nations.set(nationItem.id, nationItem);
|
nations.set(nationItem.id, nationItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
const selectedNationID = ref(procRes.nations[0].id);
|
const selectedNationID = ref(procRes.nationList[0].id);
|
||||||
const selectedCityObj = ref(); //mapping용
|
|
||||||
|
|
||||||
function selectedNation(nationID: number) {
|
function selectedNation(nationID: number) {
|
||||||
selectedNationID.value = nationID;
|
selectedNationID.value = nationID;
|
||||||
@@ -92,10 +89,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
startYear: procRes.startYear,
|
|
||||||
mapTheme: ref(mapTheme),
|
|
||||||
nations: ref(nations),
|
nations: ref(nations),
|
||||||
selectedCityObj,
|
|
||||||
selectedNationID,
|
selectedNationID,
|
||||||
commandName,
|
commandName,
|
||||||
isBrightColor,
|
isBrightColor,
|
||||||
|
|||||||
@@ -0,0 +1,161 @@
|
|||||||
|
<template>
|
||||||
|
<TopBackBar :title="commandName" type="chief" />
|
||||||
|
<div class="bg0">
|
||||||
|
<div>
|
||||||
|
장수를 따라 임관합니다.<br />
|
||||||
|
이미 임관/등용되었던 국가는 다시 임관할 수 없습니다.<br />
|
||||||
|
바로 군주의 위치로 이동합니다.<br />
|
||||||
|
임관할 국가를 목록에서 선택하세요.<br />
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12 col-md-6">
|
||||||
|
장수 :
|
||||||
|
<GeneralSelect
|
||||||
|
:generals="generalList"
|
||||||
|
:groupByNation="nationList"
|
||||||
|
:textHelper="textHelpGeneral"
|
||||||
|
v-model="selectedGeneralID"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 col-md-2 d-grid">
|
||||||
|
<b-button variant="primary" @click="submit">{{ commandName }}</b-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="nation-list">
|
||||||
|
<div class="nation-header nation-row bg1 center">
|
||||||
|
<div>국가명</div>
|
||||||
|
<div>임관권유문</div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
v-for="[, nation] in nationList"
|
||||||
|
:key="nation.id"
|
||||||
|
class="nation-row s-border-b"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
:style="{
|
||||||
|
backgroundColor: nation.color,
|
||||||
|
color: isBrightColor(nation.color) ? 'black' : 'white',
|
||||||
|
fontSize: '1.3em',
|
||||||
|
}"
|
||||||
|
class="d-grid"
|
||||||
|
>
|
||||||
|
<div class="align-self-center center">{{ nation.name }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="nation-scout-plate align-self-center">
|
||||||
|
<div class="nation-scout-msg" v-html="nation.scoutMsg" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<BottomBar :title="commandName" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
import GeneralSelect from "@/processing/GeneralSelect.vue";
|
||||||
|
import { defineComponent, ref } from "vue";
|
||||||
|
import { unwrap } from "@/util/unwrap";
|
||||||
|
import { Args } from "@/processing/args";
|
||||||
|
import TopBackBar from "@/components/TopBackBar.vue";
|
||||||
|
import BottomBar from "@/components/BottomBar.vue";
|
||||||
|
import {
|
||||||
|
convertGeneralList,
|
||||||
|
procGeneralItem,
|
||||||
|
procGeneralKey,
|
||||||
|
procGeneralRawItemList,
|
||||||
|
procNationItem,
|
||||||
|
procNationList,
|
||||||
|
} from "../processingRes";
|
||||||
|
import { getNpcColor } from "@/common_legacy";
|
||||||
|
import { isBrightColor } from "@/util/isBrightColor";
|
||||||
|
declare const commandName: string;
|
||||||
|
|
||||||
|
declare const procRes: {
|
||||||
|
generals: procGeneralRawItemList;
|
||||||
|
generalsKey: procGeneralKey[];
|
||||||
|
nationList: procNationList;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
components: {
|
||||||
|
GeneralSelect,
|
||||||
|
TopBackBar,
|
||||||
|
BottomBar,
|
||||||
|
},
|
||||||
|
setup() {
|
||||||
|
const generalList = convertGeneralList(
|
||||||
|
procRes.generalsKey,
|
||||||
|
procRes.generals
|
||||||
|
);
|
||||||
|
|
||||||
|
const selectedGeneralID = ref(generalList[0].no);
|
||||||
|
|
||||||
|
function textHelpGeneral(gen: procGeneralItem): string {
|
||||||
|
const nameColor = getNpcColor(gen.npc);
|
||||||
|
const name = nameColor
|
||||||
|
? `<span style="color:${nameColor}">${gen.name}</span>`
|
||||||
|
: gen.name;
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
const nations = new Map<number, procNationItem>();
|
||||||
|
for (const nationItem of procRes.nationList) {
|
||||||
|
nations.set(nationItem.id, nationItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
async function submit(e: Event) {
|
||||||
|
const event = new CustomEvent<Args>("customSubmit", {
|
||||||
|
detail: {
|
||||||
|
destGeneralID: selectedGeneralID.value,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
unwrap(e.target).dispatchEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
|
const nationList = new Map<number, procNationItem>();
|
||||||
|
for (const nationItem of procRes.nationList) {
|
||||||
|
nationList.set(nationItem.id, nationItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
nations: ref(nations),
|
||||||
|
selectedGeneralID,
|
||||||
|
generalList,
|
||||||
|
nationList,
|
||||||
|
commandName,
|
||||||
|
isBrightColor,
|
||||||
|
textHelpGeneral,
|
||||||
|
submit,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import "@scss/common/break_500px.scss";
|
||||||
|
|
||||||
|
@include media-1000px {
|
||||||
|
.nation-list .nation-row {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 130px 870px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-500px {
|
||||||
|
.nation-list .nation-row {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
grid-template-rows: 1fr minmax(1fr, calc(200px * 500 / 870));
|
||||||
|
}
|
||||||
|
|
||||||
|
.nation-scout-plate {
|
||||||
|
max-height: calc(200px * 500 / 870);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nation-scout-msg {
|
||||||
|
width: 870px;
|
||||||
|
transform-origin: 0px 0px;
|
||||||
|
transform: scale(calc(500 / 870));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,8 +1,11 @@
|
|||||||
import { default as che_건국 } from "./che_건국.vue";
|
import { default as che_건국 } from "./che_건국.vue";
|
||||||
import { default as che_군량매매 } from "./che_군량매매.vue";
|
import { default as che_군량매매 } from "./che_군량매매.vue";
|
||||||
import { default as che_등용 } from "./che_등용.vue";
|
import { default as che_등용 } from "./che_등용.vue";
|
||||||
|
import { default as che_선양 } from "./che_선양.vue";
|
||||||
|
|
||||||
import { default as CityProcess } from "./che_이동.vue";
|
import { default as CityProcess } from "./che_이동.vue";
|
||||||
import { default as che_임관 } from "./che_임관.vue";
|
import { default as che_임관 } from "./che_임관.vue";
|
||||||
|
import { default as che_장수대상임관 } from "./che_장수대상임관.vue";
|
||||||
import { default as che_징병 } from "./che_징병.vue";
|
import { default as che_징병 } from "./che_징병.vue";
|
||||||
|
|
||||||
//TODO: 자주 쓰는 녀석들은 Slot으로 변경
|
//TODO: 자주 쓰는 녀석들은 Slot으로 변경
|
||||||
@@ -12,18 +15,18 @@ export const commandMap: Record<string, typeof CityProcess> = {
|
|||||||
che_군량매매,
|
che_군량매매,
|
||||||
che_건국,
|
che_건국,
|
||||||
che_등용,
|
che_등용,
|
||||||
|
che_선양,
|
||||||
che_이동: CityProcess,
|
che_이동: CityProcess,
|
||||||
che_임관,
|
che_임관,
|
||||||
che_출병: CityProcess,
|
che_출병: CityProcess,
|
||||||
|
che_장수대상임관,
|
||||||
che_징병,
|
che_징병,
|
||||||
che_모병: che_징병,
|
che_모병: che_징병,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
- 항목들
|
- 항목들
|
||||||
장수 - 선양,
|
|
||||||
장수+ - 장수대상임관
|
장수+ - 장수대상임관
|
||||||
국가+ - 임관
|
|
||||||
장수/금쌀/분량 - 증여(포상 이식)
|
장수/금쌀/분량 - 증여(포상 이식)
|
||||||
금쌀/분량 - 헌납(군량매매 또는 포상 수정)
|
금쌀/분량 - 헌납(군량매매 또는 포상 수정)
|
||||||
도시 - 첩보, 계략(화계 등)
|
도시 - 첩보, 계략(화계 등)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:singleLabel="props">
|
<template v-slot:singleLabel="props">
|
||||||
{{ props.option.simpleName }}
|
{{ props.option.simpleName }} {{groupByNation?`[${groupByNation.get(props.option.obj.nationID).name}]`:undefined}}
|
||||||
</template>
|
</template>
|
||||||
</v-multiselect>
|
</v-multiselect>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user