Skip to content

Commit 2f341dc

Browse files
committed
feat(editor): continue "add unit mod editor"
fix first test action;
1 parent 3a72b8c commit 2f341dc

File tree

71 files changed

+44
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+44
-62
lines changed

contributes/meta3d-action-mod-unit-publish-to-game/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "meta3d-action-mod-unit-publish-to-game",
3-
"version": "1.3.2",
3+
"version": "1.3.6",
44
"publisher": "meta3d",
55
"protocol": {
66
"name": "meta3d-action-mod-unit-publish-to-game-protocol"

contributes/meta3d-action-mod-unit-publish-to-game/src/Main.ts

Lines changed: 30 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,16 @@ let _buildDistFileContent = (api, state) => {
128128
},
129129
getBlockService: (api) => {
130130
return {
131-
getName: () => "精英近战巨大娘1",
131+
getName: () => "精英近战巨大娘1_1",
132132
getDisplayName: () => {
133133
return {
134-
displayNameCN: "精英近战巨大娘1",
135-
displayNameEN: "Elite Giantess Melee 1",
134+
displayNameCN: "精英近战巨大娘1_1",
135+
displayNameEN: "Elite Giantess Melee 1_1",
136136
}
137137
},
138-
getModel: () => ${model.Melee1},
139-
getCategory: () => ${category.EliteGiantess},
140-
getValue: (api: api, state) => {
138+
getModel: () => "${model.Melee1}",
139+
getCategory: () => "${category.EliteGiantess}",
140+
getValue: (api, state) => {
141141
// TODO judge getCategory when by editor
142142
143143
return api.updateEliteGiantessValue(state, ${JSON.stringify({
@@ -185,12 +185,13 @@ let _buildDistFileContent = (api, state) => {
185185
186186
emitPrecision: emitPrecision.Level0,
187187
188-
// scale: scale.Level5,
189-
scale: scale.Level10,
188+
// scale: scale.Level10,
189+
scale: scale.Level0,
190190
191191
})})
192192
},
193-
getSkillData: () => ${JSON.stringify({
193+
getSkillData: () => {
194+
return ${JSON.stringify({
194195
[skillObject.Small]: {
195196
action: action.StompLight,
196197
value: {
@@ -254,8 +255,10 @@ let _buildDistFileContent = (api, state) => {
254255
},
255256
},
256257
},
257-
})},
258-
getGenerateData: () => ${JSON.stringify({
258+
})}
259+
},
260+
getGenerateData: () => {
261+
return ${JSON.stringify({
259262
[sceneChapter.AttackCity]: {
260263
[player.LittleMan]: [
261264
{
@@ -286,44 +289,23 @@ let _buildDistFileContent = (api, state) => {
286289
rate: 0.5,
287290
countFactor: countFactor.Level10,
288291
},
289-
})},
290-
getRewardData: () => {
291-
return ${JSON.stringify({
292-
gem: state => gem.Middle3,
293-
coin: state => coin.VeryHigh,
294-
prop: [
295-
{
296-
// name: propName.AddHp2,
297-
name: "AddHp2",
298-
299-
getCountFunc: state => count.VeryLow,
300-
getRateFunc: state => rate.Low,
301-
},
302-
303-
// {
304-
// // name: propName.BiggerBullet,
305-
// name: api.block.getBlockService<service>(state, getPropBulletProtocolName(), getPropBulletBiggerBlockName()).getWeaponName(),
306-
307-
// getCountFunc: state => count.VeryLow,
308-
// getRateFunc: state => rate.VeryLow,
309-
// },
310-
// {
311-
// // name: propName.SmallerToLastBiggerCount,
312-
// name: api.block.getBlockService<service>(state, getPropBulletProtocolName(), getPropBulletSmallerBlockName()).getWeaponName(),
313-
314-
// getCountFunc: state => count.VeryLow,
315-
// getRateFunc: state => rate.VeryLow2,
316-
// },
317-
318-
// {
319-
// name: api.block.getBlockService<propOtherService>(state, getPropOtherProtocolName(), getPropStrongBiggerBlockName()).getName(),
320-
321-
// getCountFunc: state => count.VeryLow,
322-
// getRateFunc: state => rate.Low,
323-
// },
324-
],
325-
experienceValue: experienceValue.VeryHigh,
326292
})}
293+
},
294+
getRewardData: () => {
295+
return {
296+
gem: state => ${gem.Middle3},
297+
coin: state => ${coin.VeryHigh},
298+
prop: [
299+
{
300+
// name: propName.AddHp2,
301+
name: "AddHp2",
302+
303+
getCountFunc: state => ${count.VeryLow},
304+
getRateFunc: state => ${rate.Low},
305+
}
306+
],
307+
experienceValue: ${experienceValue.VeryHigh},
308+
}
327309
},
328310
};
329311
}

defaults/meta3d-commonlib/lib/bs/.bsdeps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ src\log 0x1.a5a64897c2f18p+30
1818
src\copy 0x1.a5a64897c0e59p+30
1919
src\contract 0x1.a5a64897bfdf9p+30
2020
===
21-
D:\Github\Meta3D\node_modules\rescript\win32\rescript.exe 0x1.a68aa395cb02cp+30
21+
D:\Github\Meta3D\node_modules\rescript\win32\rescript.exe 0x1.a68e065b77898p+30
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#Start(36635836)
2-
#Done(36635846)
1+
#Start(5048351)
2+
#Done(5049203)
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)