cortico-world-life 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +38 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # 小屋世界(cortico-world-life)
2
+
3
+ 一个住在电脑里的小屋,自己过日子。是 Coopanion 的一个 World 扩展,装进去以后面板里会多出「小屋世界」这一块。
4
+
5
+ > 包名 `cortico-world-life` 只是安装用的门牌号(npm 只收英文小写),装进 Coopanion 之后,它显示的名字就是 **小屋世界**。
6
+
7
+ ## 它到底干什么
8
+
9
+ 小屋里的那个人会自己安排一天:起床、吃饭、出门、打工、钓鱼、种田、喂鸡、摆摊、交房租水电。你不用一直盯着,它按设定的间隔在本地自己往前走;累了会歇,心情差了会掉状态。
10
+
11
+ 所有东西都在本地跑,不联网、不收集数据,存档在 `data/worlds/life/`,换新版本覆盖 `src` 也不会丢。
12
+
13
+ ## 里面能做的事
14
+
15
+ - **出门**:公园、电玩城、市集……不同地方花的时间和钱不一样
16
+ - **钓鱼**:几十种鱼,记着每种钓过几条、最大体长和最重纪录
17
+ - **种田**:开田、买种子、浇水、收成、卖钱
18
+ - **养殖**:围院子养鸡,喂饲料、捡蛋、摸摸它们,也能按只卖
19
+ - **打工**:按小时结钱,干几个小时就是现实几个小时
20
+ - **摆摊**:按当天行情定价,自己支摊卖鱼
21
+ - **过日子**:房租水电、做饭、喂门口那只猫、记待买清单
22
+ - **记录本**:吃过什么、去过哪、挣了多少、跟谁打过交道,都能翻
23
+
24
+ ## 怎么装
25
+
26
+ 1. 把整个文件夹放进 `<Coopanion 安装目录>\data\extensions\node_modules\`
27
+ (最终长这样:`...\node_modules\cortico-world-life\package.json`)
28
+ 2. 在 `data\extensions\package.json` 的 `dependencies` 里加一行:
29
+ `"cortico-world-life": "file:/你的路径/cortico-world-life"`
30
+ 3. 在 `data\config.json` 根上加一段:
31
+ `"worlds": { "life": { "enabled": true, "stepSeconds": 120 } }`
32
+ 4. 重启 Coopanion
33
+
34
+ 详细步骤和常见问题看包里的 `安装说明.txt`。
35
+
36
+ ## 要求
37
+
38
+ Node 22 以上,没有第三方依赖,不用 `npm install`。Coopanion 需要支持 api 6 的版本。
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "cortico-world-life",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
- "description": "Cortico World: 小屋世界,一个自己在本地过日子的小屋",
5
+ "description": "小屋世界:一个在本地自己过日子的模拟小屋,能钓鱼、种田、打工、养鸡、摆摊,不联网",
6
6
  "license": "MIT",
7
7
  "author": "星云double",
8
8
  "keywords": ["cortico-world", "life-sim", "simulation"],