// 世界树种子长出的生命形态(图鉴):从苔藓到星之民。 // kind: 'prod' 本源产出乘区 / 'attack' 治世(环境挑战减免)/ 'both' 两者兼有。 // 解锁:在本星阶段(progressPct)达到 stage 时种下;星球阶段在各自章节里讲述。 // 署名:FmodeCode export const LIFE = [ { id: 'moss', name: '弥生苔', icon: 'moss', kind: 'prod', per: 0.10, contrib: 1.08, base: 25, planet: 0, stage: 0, lore: '第一株苔藓落在干裂的河床上。它不懂什么是城市,只记得把水留在身体里。' }, { id: 'firefly', name: '萤光虫', icon: 'bug', kind: 'attack', per: 0.07, base: 100, planet: 0, stage: 0.10, lore: '它们用发光的腹部为夜行的小路照明——在人类学会用火之前,它们已经会发电。' }, { id: 'fern', name: '银脉蕨', icon: 'fern', kind: 'prod', per: 0.12, contrib: 1.1, base: 260, planet: 0, stage: 0.22, lore: '石炭纪的蕨类曾把氧气灌满天空。这一次,它们把氧气留给根系自己。' }, { id: 'deer', name: '空谷鹿', icon: 'deer', kind: 'both', per: 0.10, base: 900, planet: 0, stage: 0.34, lore: '第一只鹿踏进世界树下的草地时,似乎想起了什么,又仿佛什么都不记得。' }, { id: 'whale', name: '云鲸', icon: 'whale', kind: 'prod', per: 0.15, contrib: 1.1, base: 3000, planet: 0, stage: 0.40, lore: '它们游进根系的云层,用低沉的歌声把远方的根须连成一张网。' }, { id: 'graymoss', name: '月尘苔', icon: 'moss', kind: 'attack', per: 0.07, base: 400, planet: 1, stage: 0, unlockRoot: 5, lore: '第一株在真空里活下来的苔藓是灰色的——直到它第一次见到地球的光。' }, { id: 'crystalfern', name: '晶尘蕨', icon: 'fern', kind: 'both', per: 0.11, base: 3000, planet: 1, stage: 0, lore: '叶脉里长出的冰晶,让它在零下两百度的夜里仍然柔软。' }, { id: 'human', name: '拾光人', icon: 'human', kind: 'prod', per: 0.14, base: 2.4e+04, planet: 1, stage: 0.15, lore: '他们从冻土里醒来,没有文字,只有一双会形容星空的眼睛。' }, { id: 'rustwalker', name: '赤砂行者', icon: 'deer', kind: 'attack', per: 0.10, base: 2e+04, planet: 2, stage: 0, lore: '在沙暴里行走的族群,背上的壳由火星铁锈与苔藓共同长成。' }, { id: 'mycoweb', name: '菌丝网', icon: 'web', kind: 'prod', per: 0.20, base: 1.5e+05, planet: 2, stage: 0, lore: '整片地下世界的呼吸被编成一条看不见的网,任何风吹草动都会传回树根。' }, { id: 'stormmantis', name: '风暴螳', icon: 'mantis', kind: 'both', per: 0.12, base: 2e+06, planet: 3, stage: 0, lore: '它们在大红斑的边缘滑翔,把风暴本身当作翅膀。' }, { id: 'europian', name: '欧罗巴人', icon: 'human', kind: 'attack', per: 0.11, base: 1.5e+07, planet: 3, stage: 0, lore: '冰壳之下建起的第一座水下城,灯光穿过冰层,像一根埋在木星里的绿针。' }, { id: 'ringdove', name: '环羽鸟', icon: 'dove', kind: 'prod', per: 0.22, base: 2e+08, planet: 4, stage: 0, lore: '它们沿土星环飞行,羽尖掠过冰粒时,会发出类似竖琴的声音。' }, { id: 'ringwarden', name: '星环卫士', icon: 'mantis', kind: 'attack', per: 0.12, base: 1.5e+09, planet: 4, stage: 0, lore: '星环的冰上站着一列守卫,它们守护的不是疆界,而是一首还没唱完的歌。' }, { id: 'greenstar', name: '极光植', icon: 'starplant', kind: 'both', per: 0.14, base: 6e+10, planet: 5, stage: 0, lore: '它们在极夜里开花,用四十年没有见过的光为自己授粉。' }, { id: 'deeplight', name: '深蓝灯蕨', icon: 'fern', kind: 'prod', per: 0.25, base: 2e+12, planet: 6, stage: 0, lore: '海王星的风把一切刮走,只有发光的蕨留在原地,站成了汪洋里的灯塔。' }, { id: 'iceclan', name: '冰墓守望者', icon: 'human', kind: 'attack', per: 0.13, base: 6e+13, planet: 7, stage: 0, lore: '它们守在柯伊伯带的边缘,记得所有没能成为行星的种子。' }, { id: 'starborn', name: '星之民', icon: 'star', kind: 'both', per: 0.16, base: 2e+15, planet: 8, stage: 0, lore: '最后一种生命从太阳的光里诞生:它们没有身体,只有根须与光的记忆。' }, ]; export const lifeById = (id) => LIFE.find((l) => l.id === id); export const LIFE_TOTAL = LIFE.length; export const isProd = (l) => l.kind === 'prod' || l.kind === 'both'; export const isAttack = (l) => l.kind === 'attack' || l.kind === 'both'; /** 生命在本星阶段的解锁条件是否满足 */ export function lifeUnlockedAt(life, progressPct) { return progressPct >= life.stage - 1e-9; } /** 额外的根系等级门槛(可选):该星生命至少在本星根须扎根到这一级才会出现 */ /** 该星球图鉴里的生命 */ export function livesOfPlanet(planetIdx) { return LIFE.filter((l) => l.planet === planetIdx); }