Editing User:PigeonGuru/Sandbox
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | === template === | |
+ | |||
+ | http://rimworldwiki.com/index.php?title=Template:Nav/weapons | ||
+ | |||
+ | === save file === | ||
+ | |||
+ | C:\Users\%username%\AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios\Saves | ||
+ | |||
+ | === datamined === | ||
+ | |||
+ | datamining stuff related to prisoners... | ||
+ | |||
+ | ---- | ||
+ | private static float PopIntentAdjustedRecruitDifficulty(float baseDifficulty, float popIntent) | ||
+ | { | ||
+ | float num = Mathf.Clamp(popIntent, 0.25f, 3f); | ||
+ | return 1f - (1f - baseDifficulty) * num; | ||
+ | } | ||
+ | |||
+ | ---- | ||
+ | public static void DoTable_PopIntentRecruitDifficulty() | ||
+ | { | ||
+ | List<float> list = new List<float>(); | ||
+ | for (float num = -1f; num < 3f; num += 0.1f) | ||
+ | { | ||
+ | list.Add(num); | ||
+ | } | ||
+ | List<float> colValues = new List<float> | ||
+ | { | ||
+ | 0.1f, | ||
+ | 0.2f, | ||
+ | 0.3f, | ||
+ | 0.4f, | ||
+ | 0.5f, | ||
+ | 0.6f, | ||
+ | 0.7f, | ||
+ | 0.8f, | ||
+ | 0.9f, | ||
+ | 0.95f, | ||
+ | 0.99f | ||
+ | }; | ||
+ | DebugTables.MakeTablesDialog<float, float>(colValues, (float d) => "d=" + d.ToString("F0"), list, (float rv) => rv.ToString("F1"), (float d, float pi) => PawnUtility.PopIntentAdjustedRecruitDifficulty(d, pi).ToStringPercent(), "intents"); | ||
− | + | ---- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | private static readonly SimpleCurve RecruitChanceFactorCurve_Wildness = new SimpleCurve | |
+ | { | ||
+ | { | ||
+ | new CurvePoint(1f, 0f), | ||
+ | true | ||
+ | }, | ||
+ | { | ||
+ | new CurvePoint(0.5f, 1f), | ||
+ | true | ||
+ | }, | ||
+ | { | ||
+ | new CurvePoint(0f, 2f), | ||
+ | true | ||
+ | } | ||
+ | }; | ||
− | + | ---- | |
− | = | + | private static readonly SimpleCurve RecruitChanceFactorCurve_Opinion = new SimpleCurve |
+ | { | ||
+ | { | ||
+ | new CurvePoint(-50f, 0f), | ||
+ | true | ||
+ | }, | ||
+ | { | ||
+ | new CurvePoint(50f, 1f), | ||
+ | true | ||
+ | }, | ||
+ | { | ||
+ | new CurvePoint(100f, 2f), | ||
+ | true | ||
+ | } | ||
+ | }; | ||
+ | |||
+ | ---- | ||
− | + | private static readonly SimpleCurve RecruitChanceFactorCurve_Mood = new SimpleCurve | |
− | + | { | |
− | + | { | |
+ | new CurvePoint(0f, 0.25f), | ||
+ | true | ||
+ | }, | ||
+ | { | ||
+ | new CurvePoint(0.1f, 0.25f), | ||
+ | true | ||
+ | }, | ||
+ | { | ||
+ | new CurvePoint(0.25f, 1f), | ||
+ | true | ||
+ | }, | ||
+ | { | ||
+ | new CurvePoint(0.5f, 1f), | ||
+ | true | ||
+ | }, | ||
+ | { | ||
+ | new CurvePoint(1f, 1.5f), | ||
+ | true | ||
+ | } | ||
+ | }; | ||
− | + | ---- | |
− | + | == Graphs == | |
− | + | The below graphs assume an unmodified shooter using a Normal quality weapon. | |
− | + | [[File:AssaultRifleAccuracyNoTrait.png|494px|Assault rifle's accuracy with various shooters without any trait.]] | |
+ | [[File:AssaultRifleAccuracyCarefulShooter.png|494px|Assault rifle's accuracy with various shooters with careful shooter.]] | ||
− | + | [[File:AssaultRifleAccuracyTriggerHappy.png|494px|Assault rifle's accuracy with various shooters with trigger-happy.]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |