40 lines
1.2 KiB
JavaScript
40 lines
1.2 KiB
JavaScript
|
|
// 道具配置
|
||
|
|
export const ITEMS = {
|
||
|
|
cookie: {
|
||
|
|
id: 'cookie',
|
||
|
|
name: '幸運餅乾',
|
||
|
|
type: 'consumable',
|
||
|
|
effects: { modifyStats: { hunger: +20, happiness: +10 } },
|
||
|
|
description: '增加飢餓和快樂'
|
||
|
|
},
|
||
|
|
water: {
|
||
|
|
id: 'water',
|
||
|
|
name: '神水',
|
||
|
|
type: 'consumable',
|
||
|
|
effects: { modifyStats: { health: +15, happiness: +5 } },
|
||
|
|
description: '恢復健康'
|
||
|
|
},
|
||
|
|
amulet: {
|
||
|
|
id: 'amulet',
|
||
|
|
name: '平安符',
|
||
|
|
type: 'equipment',
|
||
|
|
effects: { addBuff: { id: 'amulet_protection', name: '平安符保護', durationTicks: Infinity, flat: { health: 20 } } },
|
||
|
|
description: '永久增加健康上限'
|
||
|
|
},
|
||
|
|
sunglasses: {
|
||
|
|
id: 'sunglasses',
|
||
|
|
name: '酷酷墨鏡',
|
||
|
|
type: 'equipment',
|
||
|
|
effects: { addBuff: { id: 'cool', name: '酷炫', durationTicks: Infinity, percent: { happiness: 0.1 } } },
|
||
|
|
description: '永久增加快樂 10%'
|
||
|
|
},
|
||
|
|
training_manual: {
|
||
|
|
id: 'training_manual',
|
||
|
|
name: '訓練手冊',
|
||
|
|
type: 'equipment',
|
||
|
|
effects: { addBuff: { id: 'training', name: '訓練加成', durationTicks: Infinity, percent: { str: 0.15, dex: 0.15 } } },
|
||
|
|
description: '永久增加力量和敏捷成長'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|