Starbound

Starbound

131 个评价
Anom's Outpost Overhaul - Outpost Shuttlecraft Patch
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
162.452 KB
2021 年 4 月 26 日 上午 10:50
2024 年 12 月 16 日 下午 4:22
2 项改动说明 ( 查看 )

订阅以下载
Anom's Outpost Overhaul - Outpost Shuttlecraft Patch

在 AnomNom 的 2 个合集中
Anom's Creations
120 件物品
Anom's Outpost Overhaul: The Complete Collection
29 件物品
描述


A patch for Outpost Shuttlecraft, which moves the Shuttlecraft Bay to Pirate Pete's Junkyard.




⠀⠀⠀⠀⠀⠀





Almost all patches for Anom's Outpost Overhaul follow the same formula. After checking which universe flag the dungeon has been added to, we do what I like to call a Test Iteration patch. This is a type of test patch where you test each value of an array for the one you are looking for, then replace it if you find it. Since array orders can change depending on load order, this is incredibly useful for not breaking other mods. Below is an example of one.

[ [ // Test 1 { "op": "test", "path": "/<UNIVERSE-FLAG>/actions/0/dungeonId", "value": "<DUNGEON-FROM-MOD>" }, { "op": "replace", "path": "/<UNIVERSE-FLAG>/actions/0", "value": { "type": "placeDungeon", "dungeonId": "<DUNGEON-FROM-MOD>", "targetInstance": "outpost", "targetPosition": [<X-COORDINATE>, <Y-COORDINATE>] } } ], [ // Test 2 { "op": "test", "path": "/<UNIVERSE-FLAG>/actions/1/dungeonId", "value": "<DUNGEON-FROM-MOD>" }, { "op": "replace", "path": "/<UNIVERSE-FLAG>/actions/1", "value": { "type": "placeDungeon", "dungeonId": "<DUNGEON-FROM-MOD>", "targetInstance": "outpost", "targetPosition": [<X-COORDINATE>, <Y-COORDINATE>] } } ], [ // Test 3 { "op": "test", "path": "/<UNIVERSE-FLAG>/actions/2/dungeonId", "value": "<DUNGEON-FROM-MOD>" }, { "op": "replace", "path": "/<UNIVERSE-FLAG>/actions/2", "value": { "type": "placeDungeon", "dungeonId": "<DUNGEON-FROM-MOD>", "targetInstance": "outpost", "targetPosition": [<X-COORDINATE>, <Y-COORDINATE>] } } ] ]