pet_data/data/adventures.js

60 lines
1.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 冒險區域配置(資料驅動)
export const ADVENTURES = [
{
id: 'backyard',
name: '自家後院',
description: '安全的新手探險地,偶爾會有小蟲子。',
statsRequirement: null, // 無屬性要求
cost: {
hunger: 5,
happiness: 5
},
duration: 10, // 測試用10秒 (實際可能 60秒)
enemyPool: ['cockroach', 'mouse'],
enemyRate: 0.6, // 60% 機率遇到敵人
rewards: {
items: [
{ itemId: 'cookie', chance: 0.2 }
]
}
},
{
id: 'park',
name: '附近的公園',
description: '熱鬧的公園,但也潛藏著流浪動物的威脅。',
statsRequirement: { str: 20 }, // 需要力量 20
cost: {
hunger: 15,
happiness: 10
},
duration: 30, // 測試用30秒
enemyPool: ['stray_dog', 'wild_cat'],
enemyRate: 0.7,
rewards: {
items: [
{ itemId: 'tuna_can', chance: 0.3 },
{ itemId: 'ball', chance: 0.2 }
]
}
},
{
id: 'forest',
name: '神秘森林',
description: '危險的未知區域,只有強者才能生存。',
statsRequirement: { str: 50, int: 30 },
cost: {
hunger: 30,
happiness: 20
},
duration: 60, // 測試用60秒
enemyPool: ['snake', 'bear'],
enemyRate: 0.8,
rewards: {
items: [
{ itemId: 'vitality_potion', chance: 0.3 },
{ itemId: 'magic_wand', chance: 0.1 }
]
}
}
]