[1.0/0.19] No Prison Breaks

Started by Greep, August 07, 2018, 08:06:19 AM

Previous topic - Next topic

Greep

No Prison Breaks

Someone asked for this on steam, and when I looked around, surprisingly this was never made ever despite being a one liner harmony dll.

https://steamcommunity.com/sharedfiles/filedetails/?id=1469028194

Available on steam, also as an attachment here for those DRM luddites.  Enjoy!  Last mod before I consolidate all this little ones into a bigger thread.

Feel free to steal if I forget to update to 1.0, here's the source for those who can use harmony.  And uh rename the class to something not a copy/paste mistake if you do:

    [StaticConstructorOnStartup]
    class Main
    {
        static Main()
        {
            var harmony = HarmonyInstance.Create("com.stuff.things.rimworld.mod9000.harmonica");
            harmony.PatchAll(Assembly.GetExecutingAssembly());
        }
    }

    [HarmonyPatch(typeof(PrisonBreakUtility))]
    [HarmonyPatch("StartPrisonBreak")]
    [HarmonyPatch(new Type[] { typeof(Pawn) })]
    class RaidPoints
    {
        static bool Prefix(Pawn initiator)
        {
            Log.Message("Prison break suppressed by mod");
            return false;
        }
    }

[attachment deleted due to age]
1.0 Mods: Raid size limiter:
https://ludeon.com/forums/index.php?topic=42721.0

MineTortoise:
https://ludeon.com/forums/index.php?topic=42792.0
HELLO!

(WIPish)Strategy Mode: The experienced player's "vanilla"
https://ludeon.com/forums/index.php?topic=43044.0

Greep

Adding a b18 version on request.  >600kb total so have to make a new post :/

[attachment deleted due to age]
1.0 Mods: Raid size limiter:
https://ludeon.com/forums/index.php?topic=42721.0

MineTortoise:
https://ludeon.com/forums/index.php?topic=42792.0
HELLO!

(WIPish)Strategy Mode: The experienced player's "vanilla"
https://ludeon.com/forums/index.php?topic=43044.0

Canute

jc_smo,
Please learn how to quote.
And maybe you notice after your first posting here, you need to be loged in to see attachment on a posting.
The mod is downloadable from the first posting.

Swirru

Quote from: Greep on August 07, 2018, 08:06:19 AM
No Prison Breaks

Someone asked for this on steam, and when I looked around, surprisingly this was never made ever despite being a one liner harmony dll.

https://steamcommunity.com/sharedfiles/filedetails/?id=1469028194

Available on steam, also as an attachment here for those DRM luddites.  Enjoy!  Last mod before I consolidate all this little ones into a bigger thread.

Feel free to steal if I forget to update to 1.0, here's the source for those who can use harmony.  And uh rename the class to something not a copy/paste mistake if you do:

    [StaticConstructorOnStartup]
    class Main
    {
        static Main()
        {
            var harmony = HarmonyInstance.Create("com.stuff.things.rimworld.mod9000.harmonica");
            harmony.PatchAll(Assembly.GetExecutingAssembly());
        }
    }

    [HarmonyPatch(typeof(PrisonBreakUtility))]
    [HarmonyPatch("StartPrisonBreak")]
    [HarmonyPatch(new Type[] { typeof(Pawn) })]
    class RaidPoints
    {
        static bool Prefix(Pawn initiator)
        {
            Log.Message("Prison break suppressed by mod");
            return false;
        }
    }

Its not for version 1.0 but 0.19 plz reupload or delete this attachment.