From 57df20e5689928f0a885c8ecd3f5f2b030851103 Mon Sep 17 00:00:00 2001 From: junFeng Date: Tue, 24 Nov 2026 16:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=85=B3=E5=8D=A1=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E6=98=A0=E5=B0=84=E4=B8=AD=E7=9A=84=E5=8A=A8=E7=89=A9?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 抓猪关卡转换/piggy-converter/转换工具.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/抓猪关卡转换/piggy-converter/转换工具.html b/抓猪关卡转换/piggy-converter/转换工具.html index d2b70e5..d5992ae 100644 --- a/抓猪关卡转换/piggy-converter/转换工具.html +++ b/抓猪关卡转换/piggy-converter/转换工具.html @@ -31,6 +31,7 @@ const $=id=>document.getElementById(id);let results=[],generation=0,sourceFiles= $('mapping').value=JSON.stringify(PiggyConverter.defaults,null,2); const discoveredTypes=new Map(); const groupNames={animalGroup:'动物',obstacleGroup:'机关'}; +const animalNames={1:'普通猪',100:'炸弹熊',101:'计时狮子',103:'大象',106:'沉睡河马',107:'魅力羊',108:'撞击牛',109:'羚羊',112:'小鸡'}; for(const target of PiggyConverter.targetTypes)$('new-target').add(new Option(target.name+' · '+target.id+' · '+target.length+'×'+target.width,String(target.id))); $('add-mapping').onsubmit=event=>{ event.preventDefault(); @@ -53,7 +54,7 @@ function renderMappings(){ const elements=[]; for(const {collection,type} of rows.values()){ const row=document.createElement('div');row.className='mapping-row'; - const heading=document.createElement('strong');heading.textContent=groupNames[collection]+' · '+type; + const heading=document.createElement('strong');heading.textContent=groupNames[collection]+' · '+type+(collection==='animalGroup'&&Object.hasOwn(animalNames,type)?' · '+animalNames[type]:''); const label=document.createElement('label');label.append('目标对象'); const select=document.createElement('select');select.setAttribute('aria-label',collection+' '+type+' 目标对象');select.dataset.group=collection;select.dataset.type=type; select.add(new Option('未适配 / 不转换',''));