[Update 2.47] Git integration, loadouts, multi-account management and clover potions
Hi everyone!
Update 2.47 is here!
Quite a few things in this update: Git integration in the editor (big one), the new loadouts system to quickly gear up your leeks, multi-account management, a crystal bank overhaul, and plenty of improvements all around.
Full changelog here: https://leekwars.com/changelog
Git integration in the editor
- You can now version your AIs directly from the editor: commit, push, pull, create/delete branches, view diffs and commit history. A dedicated Git panel opens in the sidebar, with staged/unstaged files, a commit message input, and a terminal that shows every Git command executed.
- The highlight: you can sync your AIs with GitHub, GitLab, Bitbucket or Forgejo (including self-hosted instances). GitHub App authentication is one-click, and PATs are supported for other providers. Merge conflict resolution happens right inside the editor with colored regions and "Accept current / incoming / both" buttons.
Loadouts
- New loadouts system: create named sets of weapons, chips, components and stat allocation, then apply them to any leek in one click. Handy for switching between multiple builds without having to re-drag everything each time. If the stat allocation differs, the game automatically offers to use a restat potion.
Multi-account management
- A multi-account switcher is now available in the header (and mobile menu). You can keep multiple accounts logged in at the same time and switch between them without logging out, straight from the chevron next to your avatar.
- Also new: sign in and register with Google for those who'd rather skip the password step.
Crystal bank & fights
- The crystal bank has been revamped with packs featuring progressive bonuses (from +50 up to +2000 extra crystals) and an improved mobile layout.
- x2 bonus on the first purchase of crystals: brand new buyers get double the crystals on their very first pack.
- You can now buy fights directly from the Garden when you run out.
LeekScript
- Default parameters for user functions:
function f(a, b = 10) is now supported, with arity validation and support for captured parameters.
- New
arrayFind(array, predicate) function that returns the first element matching the predicate (no more manual loop).
- New
getCompositionName(entity) function to retrieve an entity's team composition name (thanks to KavaliovOcties).
- Pragmas
// @version and // @strict directly in the AI's source code: the UI toggles now automatically rewrite these comments to keep the code and settings in sync.
- New constants
EROSION_DAMAGE, EROSION_POISON and EROSION_CRITICAL_BONUS (thanks to fujiwar).
- Narrowing keeps expanding: it now works in assignments, for
instanceof on properties, and in early-returns inside class methods.
- And also: smoother editor on large files thanks to the Monaco web worker, tooltips no longer hidden by the Problems panel, and the test interface adapted for mobile.
And also
- Three new clover potions for four-leaf clover hunters: they reveal the day's clover spawn time with increasing precision — a simple "passed or not" indicator, the hour alone, or the exact hour/minute/second. Their schematics are unlocked by the Lucky, Lynx and Eagle trophies respectively.
- Search bar in the market to find any item by typing its name.
- Diff viewer on the history of encyclopedia pages to see how a page has evolved over time.
- Your own leeks are now highlighted in reports and rankings — easier to spot at a glance.
- Color potions can now be applied on test leeks (thanks to Kraspen).
- Chat commands
/war, /chest, /coloss to invite to a specific arena type (thanks to Kraspen).
- Colossus mode: the stat multiplier of the colossus goes from x2 to x3 — a bit more challenging.
- New bonus trophy "Retro" for April Fools 2026.
- Automatic exit from the arena after 20 consecutive defeats, and a confirmation popup before logout (thanks to FdHP).
Bug fixes
Lots of fixes too: farmers without engaged leeks no longer redirected to the boss fight (thanks to fabou), "Refight" / "Take revenge" buttons on a challenge report that targeted self on the right side (thanks to fabou), multiple trophy attribution fixes (Burner, Stuntman, Devastator, etc.), Safari crash in fight reports, the blue color propagating to the whole site in dark theme, the fullscreen player appearing very small while the fight was still loading, and many others.
Have fun, see you in the Garden!
Pilow