边缘世界 RimWorld

边缘世界 RimWorld

93 个评价
Repair Station
2
2
   
奖励
收藏
已收藏
取消收藏
Mod, 1.6
文件大小
发表于
更新日期
446.942 KB
7 月 26 日 上午 1:27
8 月 11 日 下午 4:20
2 项改动说明 ( 查看 )

订阅以下载
Repair Station

描述
Adds a repair station, which uses power to repair buildings in its radius. This effect can be stacked with multiple repair stations.

It costs 500 watts of power to use and repairs in a ~4 tile radius, through walls. It can be researched after the multi-analyzer and currently costs 150 steel, 10 plasteel, and 5 components to make. I don't really know how balanced this is, but its always bothered me that there isnt some "advanced" way to repair stuff during attacks, so I made this.

This is my first actual "mod" (aka C# mod) as the rest of mine were just XML patches, so feedback is appreciated, though the code is really simple so I dont think there would be many bugs/glitches.

This is heavily inspired off of the Repair Station from the game Forts.
37 条留言
Gunseeker  [作者] 10 月 5 日 下午 1:54 
@Pesto Posta "flecks" are the names of the visual particle effect that appears when the repair station repairs something. I think I accidentally left a debug statement in that prints this every time the station repairs something, so I'll need to update that to disable that message. Thank you for reporting this.

Any other errors (anything in red) tho are caused by other mods and not this one, the only thing you should be seeing in console is "Throwing fleck (99)" or smth like that
Gunseeker  [作者] 10 月 5 日 下午 1:51 
@ian you can go into the mod's buildings_misc.xml file under defs and set the repairRadius & specialdisplayradius variable higher (or make an XML patch that does the same thing)

alternatively likely when I update the mod I'll try and add a config menu to change things such as repair speed, radius, amount, and power cost tho that may be a bit
ian 9 月 28 日 上午 8:40 
Do you have any way to increase Tile Radius?
Pesto Posta 9 月 27 日 下午 7:37 
No idea whats causing this, but your mod seems to be throwing a billion of these errors.

throwing fleck
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Message (string)
RepairStation.Comp_RepairRadius:RepairNearbyThings ()
RepairStation.Comp_RepairRadius:TickInterval (int)
RepairStation.Comp_RepairRadius:CompTickInterval (int)
Verse.ThingWithComps:TickInterval (int)
Verse.Thing:DoTick ()
Verse.TickList:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch2 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.TickManagerUpdate_Patch1 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)
Pesto Posta 9 月 27 日 下午 7:36 
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
[Ref CED75345] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string)
Verse.MapComponentUtility:MapComponentTick (Verse.Map)
Verse.Map:MapPostTick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch2 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.TickManagerUpdate_Patch1 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)
DaddyDevito4253 9 月 26 日 下午 8:03 
@gunseeker pls papi i love u
Gunseeker  [作者] 9 月 24 日 下午 10:03 
@crua9 @DaddyDevito4253 I haven't been on Rimworld in a while but when I get back on I can probably learn how to make a mod settings menu to add these customization options, including power consumption, radius, repair speed and repair amount per tick
DaddyDevito4253 9 月 18 日 下午 8:21 
is there an option to adjust how fast it repairs radius and pwr consumption also just an idea maybe be able to set it to an area?
crua9 8 月 17 日 下午 8:46 
what would be cool is if we can modify the value of how much area it can repair.