Example #1
0
        public static void Patch_Graphic_RandomRotated_DrawWorker(ref Graphic __instance, ref Vector3 loc, ref Rot4 rot, Thing thing, float extraRotation, float ___maxAngle)
        {
            float num = 0f;

            if (thing != null)
            {
                num = -___maxAngle + (float)(thing.thingIDNumber * 542) % (___maxAngle * 2f);
            }
            num += extraRotation;
            RuneUtility.DrawRuneAttachments(thing, ref loc, num, false, __instance, rot);
        }
Example #2
0
 public static void Patch_PawnRenderer_DrawEquipmentAiming(Thing eq, ref Vector3 drawLoc, float aimAngle)
 {
     RuneUtility.DrawRuneAttachments(eq, ref drawLoc, aimAngle);
 }
Example #3
0
 public static void Patch_Graphic_DrawWorker(ref Vector3 loc, Thing thing, float extraRotation)
 {
     RuneUtility.DrawRuneAttachments(thing, ref loc, extraRotation);
 }