Skip to content

Instantly share code, notes, and snippets.

View xparadoxical's full-sized avatar

xparadoxical

  • 01:09 (UTC +02:00)
View GitHub Profile
@xparadoxical
xparadoxical / śwk renamer.csx
Created August 18, 2023 16:12
śwk renamer (RoslynPad)
using System.IO;
using System;
string pls = await File.ReadAllTextAsync(@"D:\Świat Według Kiepskich\kiepscy_wszystkie_sezony.pls");
var nameToTitle = pls.Split("\r\n\r\n").Skip(1).Take(588).Select(entry =>
{
var lines = entry.Split("\r\n");
return (lines[0][(lines[0].LastIndexOf('/') + 1)..], lines[1][(lines[1].IndexOf('=') + 1)..]);
}).ToDictionary(entry => entry.Item1, entry => entry.Item2);

WIP

flowchart LR;
    Play(Play games) --> Tasks & FacXP & Daily
    Daily(Complete daily quests) --> FacXP & Coins
    FacXP --> Bp(Level up Battle Pass)
    Tasks(Complete Pass Tasks) --> PassXP --> Gp(Level up Game Passes)
    Bp & Gp --> PassRewards([Get Pass rewards])
        --> Openable & Consumable & Cosmetics & Chroma
using System;
using System.Linq;
using static System.Reflection.BindingFlags;
Type t = typeof(D);
t.GetMethods(Public | Instance).Where(m => m.Name is "Invoke").ToArray().Inspect("method");
t.GetMethod("Invoke")!.GetParameters().Inspect("parameters");
delegate void D(string s, int i, object o, decimal d);