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); }
public static void Patch_PawnRenderer_DrawEquipmentAiming(Thing eq, ref Vector3 drawLoc, float aimAngle) { RuneUtility.DrawRuneAttachments(eq, ref drawLoc, aimAngle); }
public static void Patch_Graphic_DrawWorker(ref Vector3 loc, Thing thing, float extraRotation) { RuneUtility.DrawRuneAttachments(thing, ref loc, extraRotation); }