边缘世界 RimWorld

边缘世界 RimWorld

269 个评价
SwimmingKit
2
3
   
奖励
收藏
已收藏
取消收藏
Mod, 1.0, 1.1, 1.2, 1.3, 1.4
文件大小
发表于
更新日期
707.949 KB
2018 年 10 月 18 日 下午 11:24
2022 年 10 月 29 日 下午 5:08
34 项改动说明 ( 查看 )

订阅以下载
SwimmingKit

描述
Swimming Kit

A RimWorld mod which adds swimming attribute for pawns to change speeds while in water tiles.

Required Mods
- Harmony

Optional / Compatible Mods
- TerrainMovementKit A copy of this mod is included automatically, but if you also install the TerrainMovementKit as well it won't cause any issues with the SwimmingKit.

Description

The mod acts as a toolkit for adding swimming statistics to the game. It makes pawns respect a new SwimSpeed baseStat for both moving through water and for planning pathing through water.

In working on another mod it took the better part of a long weekend to get all the various places that needed changing correct, so to save other modders time and to enable adding actual aquatic gear / pawns I put the changes together in this mod.

Change in Terrain

This mod makes Ocean and DeepWater tiles accessible. Normal pawns will move very very slow through ocean, but it is possible for pawns and items to now be in Ocean. If a pawn has SwimSpeed it will travel much quicker through ocean tiles.


How to Use

Adding the `SwimSpeed` to any `ThingDef`'s `statBases` will apply swim speed when in water tiles.

<ThingDef ParentName="AnimalThingBase" ADogSaidBody="Tail"> <defName>Turtle</defName> <label>turtle</label> <description>A tortoise that likes water</description> <statBases> <MoveSpeed>1</MoveSpeed> <!-- This makes turtle have a base speed of 4 in water --> <SwimSpeed>4</SwimSpeed> </statBases> </ThingDef>

Setting aquatic in the Swimming.AquaticExtension will make something aquatic only, meaning it won't go on land.

<ThingDef ParentName="AnimalThingBase"> <defName>Shark</defName> <label>shark</label> <description>A shark that can only go in water</description> <statBases> <MoveSpeed>0.15</MoveSpeed> <SwimSpeed>4</SwimSpeed> </statBases> <modExtensions> <!-- This makes sharks stay in the water --> <li Class="Swimming.AquaticExtension"> <aquatic>true</aquatic> </li> </modExtensions> </ThingDef>

If you want to conditionally set a SwimSpeed only if this mod is present you can do the following:

// Dynamically set the SwimSpeed to avoid requiring SwimmingKit StatDef swimDef = DefDatabase<StatDef>.GetNamed("SwimSpeed", false); if (swimDef != null) { ThingDef turtle = ThingDef.Named("Turtle"); turtle.SetStatBaseValue(swimDef, 4.0f); }

You can also effect SwimSpeed by modifying equipment.

<ThingDef ParentName="ArmorMachineableBase"> <defName>Apparel_HydroPowerArmor</defName> <label>hydro plate armor</label> <description>Augmented power armor with built-in water-jets for fast traversal underwater.</description> </statBases> <equippedStatOffsets> <MoveSpeed>-1.0</MoveSpeed> <SwimSpeed>3.5</SwimSpeed> </equippedStatOffsets> </ThingDef>

For more details please read the Github SwimmingKit page[github.com].


Credits

Icon Graphic Base[www.freeiconspng.com]
Powered by Harmony Patch Library[github.com]
热门讨论 查看全部(1)
8
2023 年 10 月 21 日 下午 10:02
Requests
pyrce
118 条留言
Rovstam 7 月 12 日 下午 10:15 
o7
Incursion 6 月 1 日 上午 9:24 
1.5 Alternative UPDATED: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2893432492

This one lets pawns traverse deep waters, and is configurable. It's also xml based so if there was any performance issues with this mod or the one I previously posted, this one will perform better.

You have to enable it first, though.
Incursion 2024 年 9 月 20 日 下午 7:29 
If anyone is looking for an alternative mod to this which lets pawns traverse deep waters in 1.5, this mod will work: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2169310348
悲嬴欢阙 2024 年 9 月 15 日 下午 11:06 
when will this mod update to 1.5?
Touhoufanatic 2024 年 8 月 18 日 上午 8:54 
it is NOT safe with 1.5.
at least for me, it was causing all the wildlife in my game to not spawn, so no map ever had animals in it.
Forest1395101 2024 年 8 月 5 日 上午 4:40 
Anyone know if this is safe with 1.5?
Dr. Ben Carson 2024 年 7 月 21 日 下午 8:58 
please update to 1.5
.:Kemauri:. 2024 年 5 月 29 日 上午 5:56 
people downloading outdated mods and wondering why it doesn't work properly:
Cedaro 2024 年 4 月 22 日 上午 7:13 
In some rare case this mod can cause memory leak, be aware.
RocketRacoon 2023 年 8 月 25 日 下午 1:10 
I just removed it from a save with 450~ mods and and the save is fine