Skip to content

Commit

Permalink
Merge pull request #82 from RimNauts/main
Browse files Browse the repository at this point in the history
Fix SOS2 EVA suit compatibility
  • Loading branch information
sindre0830 committed May 22, 2024
2 parents 70b34fa + 5b99464 commit 8399a95
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
Binary file modified Assemblies/RimNauts2.dll
Binary file not shown.
8 changes: 4 additions & 4 deletions Defs/ThingDefs_Items/SpaceSuit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<MoveSpeed>-0.04</MoveSpeed>
<ShootingAccuracyPawn>-0.1</ShootingAccuracyPawn>
<HypoxiaResistance MayRequire="kentington.saveourship2">1</HypoxiaResistance>
<DecompressionResistance MayRequire="kentington.saveourship2">1</DecompressionResistance>
<DecompressionResistance MayRequire="kentington.saveourship2">0.25</DecompressionResistance>
<VacuumSpeedMultiplier MayRequire="kentington.saveourship2">4</VacuumSpeedMultiplier>
</equippedStatOffsets>
<costList>
Expand Down Expand Up @@ -69,7 +69,7 @@
</apparel>
<comps>
<li MayRequire="kentington.saveourship2">
<compClass>SaveOurShip2.Comp_EVA</compClass>
<compClass>SaveOurShip2.CompEVA</compClass>
</li>
</comps>
</ThingDef>
Expand Down Expand Up @@ -114,7 +114,7 @@
<ToxicResistance>1.0</ToxicResistance>
<SlaveSuppressionOffset MayRequire="Ludeon.RimWorld.Ideology">-0.3</SlaveSuppressionOffset>
<HypoxiaResistance MayRequire="kentington.saveourship2">1</HypoxiaResistance>
<DecompressionResistance MayRequire="kentington.saveourship2">1</DecompressionResistance>
<DecompressionResistance MayRequire="kentington.saveourship2">0.75</DecompressionResistance>
<VacuumSpeedMultiplier MayRequire="kentington.saveourship2">4</VacuumSpeedMultiplier>
</equippedStatOffsets>
<thingCategories>
Expand Down Expand Up @@ -165,7 +165,7 @@
<displayGizmoWhileUndrafted>false</displayGizmoWhileUndrafted>
</li>
<li MayRequire="kentington.saveourship2">
<compClass>SaveOurShip2.Comp_EVA</compClass>
<compClass>SaveOurShip2.CompEVA</compClass>
</li>
</comps>
<verbs>
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# RimNauts2
- Space Station building is now auto claimed by player
- Fix SOS2 EVA suit compatibility
2 changes: 1 addition & 1 deletion Source/RimNauts2/RimNauts2/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace RimNauts2 {
public static class Info {
public static readonly string name = "RimNauts 2";
public static readonly string version = "5.2.2";
public static readonly string version = "5.2.3";
}

public static class Style {
Expand Down
6 changes: 4 additions & 2 deletions Source/RimNauts2/RimNauts2/Map/SpaceStation/Structure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public override void Generate(Map map, GenStepParams parms) {
// pad
set_floor_rect(map, 1, 3, new IntVec3(0, 0, 7));
set_floor_rect(map, 5, 5, new IntVec3(0, 0, 11));
GenSpawn.Spawn(ThingDef.Named("RimNauts2_PodLauncher"), new IntVec3(0, 0, 11) + map.Center, map);
Thing podLauncher = GenSpawn.Spawn(ThingDef.Named("RimNauts2_PodLauncher"), new IntVec3(0, 0, 11) + map.Center, map);
podLauncher.SetFaction(RimWorld.Faction.OfPlayer);
// set power cables
set_thing(ThingMaker.MakeThing(RimWorld.ThingDefOf.PowerConduit), map, new IntVec3(16, 0, 0) + map.Center);
set_thing(ThingMaker.MakeThing(RimWorld.ThingDefOf.PowerConduit), map, new IntVec3(15, 0, 0) + map.Center);
Expand Down Expand Up @@ -130,7 +131,8 @@ public void set_floor(Map map, IntVec3 pos) {
}

public void set_thing(Thing thing, Map map, IntVec3 pos) {
GenSpawn.Spawn(thing, pos, map, WipeMode.Vanish);
Thing placedThing = GenSpawn.Spawn(thing, pos, map, WipeMode.Vanish);
placedThing.SetFaction(RimWorld.Faction.OfPlayer);
}

public void set_roof(Map map, IntVec3 pos) {
Expand Down
2 changes: 1 addition & 1 deletion Source/RimNauts2/RimNauts2/Things/TransportPod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void launch(Universum.World.CelestialObject targetToOrbit) {
}
Universum.World.ObjectHolder objectHolder = Universum.World.Generator.CreateObjectHolder(Props.celestialObjectDefName, tile: tile_id);
if (objectHolder == null) return;
if (Props.createMap) objectHolder.CreateMap(RimWorld.Faction.OfPlayer);
if (Props.createMap) objectHolder.CreateMap(RimWorld.Faction.OfPlayer, clearFog: true);

objectHolder.celestialObject.SetTarget(targetToOrbit);
} else {
Expand Down

0 comments on commit 8399a95

Please sign in to comment.