Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Auto Rebuild Fence

**追記** RimWorld本体の機能、画面右下のボタンから「破壊された建物を自動的に再復興するか切り替えます」をオンにすることでも解決します。本Modはその設定を知らずに作成したもので、フェンスなど特定の建築物だけを再建したい場合の補助としてご利用ください。 **概要** 戦闘や火災で破壊されたフェンス・ゲート・家畜用出入口を自動的に再建築します。 同じ種類・素材のブループリントを自動で設置し、再建を行います。 襲撃の後、木の陰などに隠れたフェンスを直しそびれ、家畜が脱走することが頻発したため作成しました。 自動再建築の対象はフェンス・ゲート・家畜用出入口のみで、壁やドアなどには手を加えません。 コロニーを立て直す過程そのものは残したかったからです。 **詳細** - プレイヤー所有のフェンス・ゲート・家畜用出入口のみ対象 - より正確には、defName に「fence」「gate」「animalflap」を含むものが対象となります - 解体やブループリントのキャンセルは対象外 - 瓦礫生成など他の破壊時処理との競合を避けるため、破壊から約5秒後に再建築指示を出します **前提MOD** - Harmony(steam://url/CommunityFilePage/2009463077) **互換性** - Harmonyベース。`Thing.DeSpawn` を直接置き換えるModでなければ競合しないはずです **ソースコード** - GitHubで公開中 [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FEthanVarekoreski%2FEthanV.AutoRebuildFence%2Ftree%2Fmaster%2FEthanV.AutoRebuildFence]https://github.com/EthanVarekoreski/EthanV.AutoRebuildFence/tree/master/EthanV.AutoRebuildFence[/url] **注意書き** 本Modの開発ではChatGPTの支援を一部利用しています。動作は理解したうえで作成していますが、不具合が残る可能性があります。ご意見・改善提案があればコメントでお知らせください。 --- **Note** The same behavior can be achieved by turning on “Toggle automatic rebuild of destroyed structures in the home area” via the button in the lower right of the screen. This mod was created before I noticed that feature and can serve as a more targeted alternative for fences and gates. **Overview** Automatically rebuilds destroyed fences, gates, and animal flaps. When such a structure is destroyed by combat or fire, a blueprint of the same type and material is automatically placed for reconstruction. After raids, I often missed fences hidden behind trees, and my livestock kept escaping — so I made this mod. Only fences, gates, and animal flaps are automatically rebuilt; walls, doors, and other structures are left untouched. I wanted to keep the satisfaction of rebuilding the colony myself. **Details** - Works only for player-owned fences, gates, and animal flaps. - More precisely, it targets any buildable whose defName contains “fence”, “gate”, or “animalflap”. - Deconstruction and blueprint cancellations are ignored. - To avoid conflicts with debris creation or other destruction-related processes, the rebuild command is issued about 5 seconds after destruction. **Required Mod** - Harmony(steam://url/CommunityFilePage/2009463077) **Compatibility** - Harmony-based; should not conflict with other construction mods unless they replace Thing.DeSpawn. **Source** - Source available on GitHub: [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FEthanVarekoreski%2FEthanV.AutoRebuildFence%2Ftree%2Fmaster%2FEthanV.AutoRebuildFence]https://github.com/EthanVarekoreski/EthanV.AutoRebuildFence/tree/master/EthanV.AutoRebuildFence[/url] **Note** This mod was developed with partial assistance from ChatGPT. The functionality was implemented with understanding, but some issues may remain. Feedback and suggestions are welcome in the comments.

Зависимости мода

Логотип мода

Harmony

Загрузить 441.3 KB