Starbound
53 人が評価
Anom's Outpost Overhaul - Artifact Trophies Patch
   
アワード
お気に入り
お気に入り
お気に入りから削除
ファイルサイズ
投稿日
更新日
145.328 KB
2021年4月26日 10時49分
2024年12月16日 14時33分
2 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
Anom's Outpost Overhaul - Artifact Trophies Patch

AnomNom 作成の 2 件のコレクション
Anom's Creations
105 アイテム
Anom's Outpost Collection
23 アイテム
解説


A patch for Artifact Trophies, which nudges Treasured Trophies to the side and sets the shop next to it.




⠀⠀⠀⠀⠀⠀





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>] } } ] ]




  • Max for creating the original mod.

  • Ves for pointing me in the direction of this mod.