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/guides | ||
+ | |||
+ | === save file === | ||
− | + | C:\Users\%username%\AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios\Saves | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | === °C === | |
− | + | <div style="background:white"> <span style="color:black"> '''[[User:PigeonGuru|PigeonGuru]]''', Strategist</span> | |
+ | { [[User_talk:PigeonGuru|talk]] | [[Special:Contributions/PigeonGuru|contribs]] } </div> <br> | ||
− | === | + | <!-- <div style="background:gold">[[File:LongRangeMineralScanner.png|25px]]<span style="color:navy">[[User:Yoshida Keiji|'''Yoshida Keiji''']]</span>([[User_talk:Yoshida_Keiji|Let's talk]][[File:beer b.png|25px]])[[File:LongRangeMineralScanner.png|25px]]</div> --> |
+ | |||
+ | === image cropping flavor text === | ||
− | + | *did you hear about darth croppuis the wise? | |
− | + | *oof ow my borders | |
− | + | *did you know that cropping images appropriately reduces size and user annoyance by more than 50%? | |
+ | *image- cropped (some random player) | ||
− | === | + | === datamined === |
− | + | namespace RimWorld.Planet | |
+ | { | ||
+ | public static class CaravanTicksPerMoveUtility | ||
+ | { | ||
+ | private const int DownedPawnMoveTicks = 450; | ||
− | = | + | public const float CellToTilesConversionRatio = 190f; |
− | + | public const int DefaultTicksPerMove = 2500; | |
+ | public static int GetTicksPerMove(Caravan caravan) | ||
+ | { | ||
+ | if (caravan == null) | ||
+ | { | ||
+ | return 2500; | ||
+ | } | ||
+ | return CaravanTicksPerMoveUtility.GetTicksPerMove(caravan.PawnsListForReading); | ||
+ | } | ||
− | + | public static int GetTicksPerMove(List<Pawn> pawns) | |
− | + | { | |
− | + | if (pawns.Any<Pawn>()) | |
− | + | { | |
− | + | float num = 0f; | |
− | + | for (int i = 0; i < pawns.Count; i++) | |
− | + | { | |
− | + | int num2 = (!pawns[i].Downed) ? pawns[i].TicksPerMoveCardinal : 450; | |
− | + | num += (float)num2 / (float)pawns.Count; | |
− | + | } | |
− | + | num *= 190f; | |
− | + | return Mathf.Max(Mathf.RoundToInt(num), 1); | |
− | + | } | |
− | + | return 2500; | |
− | + | } | |
− | ! [ | + | } |
− | + | } | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |