Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

植物调研 #54

Open
zombieJ opened this issue Jan 31, 2021 · 4 comments
Open

植物调研 #54

zombieJ opened this issue Jan 31, 2021 · 4 comments

Comments

@zombieJ
Copy link
Owner

zombieJ commented Jan 31, 2021

蔬菜定义 prefabs/farm_plant_defs.lua

蔬菜如果定义 data_only 会让生成内核代码跳过生成蔬菜对应植物的过程。

蔬菜 prefabs/veggies.lua

创造相关物品:

  • name.."_seeds":种子
  • name.."_oversized":巨大化蔬菜
  • name.."_oversized_waxed":巨大化打蜡蔬菜
  • name.."_oversized_rotten":巨大化腐烂蔬菜
  • name.."_dried":晒干的蔬菜(目前看只有 海带)
  • name:蔬菜
  • name.."_cooked":烹饪过的蔬菜

作物 prefabs/farm_plants.lua

每个蔬菜都会对应一个作物:

读取 prefabs/farm_plant_defs.lua 蔬菜列表,动态生成对应的蔬菜:

  • plant_def.prefab - "farm_plant_"..veggie:蔬菜作物

称重器 prefabs/trophyscale_oversizedveggies.lua

替换巨大化作物,应该暂时不用管。

植物截图 plantregistrydata.lua

看起来是截图用的,应该也用不到。

思路

注入 prefabs/farm_plant_defs.lua 添加相关作物信息,然后自制 prefabs/veggies.lua 注册对应的蔬菜。

杂项

@zombieJ
Copy link
Owner Author

zombieJ commented Feb 5, 2021

atlas-0

atlas-0

@zombieJ
Copy link
Owner Author

zombieJ commented Feb 6, 2021

atlas-0

@zombieJ
Copy link
Owner Author

zombieJ commented Feb 6, 2021

atlas-0

@zombieJ
Copy link
Owner Author

zombieJ commented Feb 6, 2021

atlas-0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant