Skip to content

Commit

Permalink
v3.107
Browse files Browse the repository at this point in the history
  • Loading branch information
juanosarg committed Oct 12, 2024
1 parent 23d106a commit d3f56c4
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 8 deletions.
Binary file modified 1.5/Assemblies/AlphaGenes.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified 1.5/Source/AlphaGenes/.vs/AlphaGenes/v17/.suo
Binary file not shown.
29 changes: 23 additions & 6 deletions 1.5/Source/AlphaGenes/AlphaGenes/Ability Comps/CompPocketPlane.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Verse.AI;
using Verse.AI.Group;
using Verse.Sound;
using static RimWorld.MechClusterSketch;

namespace AlphaGenes
{
Expand All @@ -33,16 +34,32 @@ public override void Apply(LocalTargetInfo target, LocalTargetInfo dest)

if (pawn.Map == pocketMap)
{
pawn.DeSpawnOrDeselect();
GenSpawn.Spawn(pawn, originLocation, originMap, Rot4.Random);
pawn.GetLord()?.Notify_PawnLost(pawn, PawnLostCondition.ExitedMap);

if(originMap is null)
{
Messages.Message("AG_TrappedForever".Translate(pawn.NameShortColored), pawn, MessageTypeDefOf.RejectInput, historical: false);
}
else {
pawn.DeSpawnOrDeselect();
GenSpawn.Spawn(pawn, originLocation, originMap, Rot4.Random);
pawn.GetLord()?.Notify_PawnLost(pawn, PawnLostCondition.ExitedMap);
}


}
else
{
pawn.DeSpawnOrDeselect();
GenSpawn.Spawn(pawn, pocketMap.Center, pocketMap, Rot4.Random);
pawn.GetLord()?.Notify_PawnLost(pawn, PawnLostCondition.ExitedMap);
if (!originMap.IsPlayerHome)
{
Messages.Message("AG_OnlyPlayerHome".Translate(), pawn, MessageTypeDefOf.RejectInput, historical: false);
}
else
{
pawn.DeSpawnOrDeselect();
GenSpawn.Spawn(pawn, pocketMap.Center, pocketMap, Rot4.Random);
pawn.GetLord()?.Notify_PawnLost(pawn, PawnLostCondition.ExitedMap);
}

}


Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9ba6771d9e5d44c0df97502c7902d08e994092bfabc9e15e3d70f832e5b30d3a
f3f5999b8d8e6609a840d7dd43c90168e6e84c71
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ E:\Steam\steamapps\common\RimWorld\Mods\AlphaGenes\1.5\Assemblies\AlphaGenes.dll
E:\Steam\steamapps\common\RimWorld\Mods\AlphaGenes\1.5\Source\AlphaGenes\AlphaGenes\obj\Debug\AlphaGenes.csproj.AssemblyReference.cache
E:\Steam\steamapps\common\RimWorld\Mods\AlphaGenes\1.5\Source\AlphaGenes\AlphaGenes\obj\Debug\AlphaGenes.csproj.CoreCompileInputs.cache
E:\Steam\steamapps\common\RimWorld\Mods\AlphaGenes\1.5\Source\AlphaGenes\AlphaGenes\obj\Debug\AlphaGenes.dll
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\AlphaGenes\1.5\Source\AlphaGenes\AlphaGenes\obj\Debug\AlphaGenes.csproj.CopyComplete
Binary file modified 1.5/Source/AlphaGenes/AlphaGenes/obj/Debug/AlphaGenes.dll
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions Languages/English/Keyed/Misc_Gameplay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
<AG_CantTeleportItemsOutOfPocketPlane>Items cannot be transferred out of a pocket plane.</AG_CantTeleportItemsOutOfPocketPlane>
<AG_OnlyOnFleshbeasts>{0} is not a fleshbeast!</AG_OnlyOnFleshbeasts>
<AG_FleshbeastTooBig>{0} is too big to be affected by this ability!</AG_FleshbeastTooBig>
<AG_TrappedForever>The original location is no longer available! {0} is trapped forever in this pocket plane!</AG_TrappedForever>
<AG_OnlyPlayerHome>This ability is only usable in a colony map</AG_OnlyPlayerHome>
<!-- Settings -->
<AG_DisableMutationsMessage>Disable unstable mutations message</AG_DisableMutationsMessage>
<AG_DisableMutationsMessage_Description>By default, the three "unstable mutations" genes will display a pop up message telling you which genes have been acquired by each colonist. This is fine if you have one colonist, not so fine if you have 20... With this options toggle you can remove those messages.</AG_DisableMutationsMessage_Description>
Expand Down

0 comments on commit d3f56c4

Please sign in to comment.