[Update 2.45] Lots of new team features, quality of life and switch in LeekScript
Hi everyone!
Update 2.45 is here!
A big update with lots of new features: switch/case in LeekScript, a full team recruiting system, likes, tournament and forum improvements, and life change animations in the fight player :)
Full changelog here: https://leekwars.com/changelog
LeekScript
- Switch/case/default is finally available! No more cascading if/else to test a value. It works with all types (numbers, strings, null, booleans, expressions), fall-through is supported, and each comparison costs 1 operation :)
- The
?? and ??= (null coalescing) operators are available. a ?? b returns a if a is not null, otherwise b. Unlike or, 0 ?? 42 returns 0. ??= only assigns if the variable is null (thanks to Nyalelph).
- The
not in operator lets you write value not in array instead of not (value in array), and it costs 1 less operation.
- The summon function accepts a 4th parameter to name your bulbs (max 20 characters). The name replaces the generic one in combat, handy when you have multiple summons of the same type.
- On the function side, getNextPlayer and getPreviousPlayer accept an optional entity parameter to query the play order relative to any entity. We also added getBulbType to identify an enemy bulb, getBulbStats to get a bulb's market min/max stats, getStat to dynamically access stats via STAT_* constants, and getMobType to identify boss mobs with MOB_* constants.
Teams
Teams got a major overhaul!
- New /teams page listing all recruiting teams. You'll find the captain's recruitment message, a match score showing how well the team fits you (based on your leeks' level and the team's activity), recently active members, and an activity score.
- You can apply to up to 5 teams at once, and cancel anytime. Captains manage candidacies from their team page. When you join a team, your other candidacies are automatically removed.
- Captains can also directly invite a player. The player gets a notification and can accept or reject. A message is sent in team chat when a new member joins.
- You can now like farmer profiles and team pages.
- The members table has been rebuilt with 19 statistic columns: talent, ranking, fights, ratio, tournament wins, BR wins, clovers, turrets killed... The owner can choose visible columns, reorder them with drag & drop, and set the default sort.
- Also: tournament win counter, team rename (10M Habs or 200 crystals, once per week), language selector, owner displayed above turret, and a toggle to show closed teams.
Tournaments and rankings
- Solo tournaments now display farmer avatars on each block, and hovering shows detailed stats like in rankings and the Garden.
- Tournament winners are announced in chat at the end of each tournament (solo at 2pm, farmer at 8pm, team at 11pm).
- New damage dealt fun ranking, and your leeks' ranking badges now show on your farmer page (for top 1000 leeks registered in the Garden).
Forum
- A views counter now appears on topics.
- You get notifications when someone votes on your messages.
- A priority system helps spot important topics. You can sort by number of messages. A warning shows before replying to a topic older than a year. Authors can delete their own topic if it has no replies, and an "Obsolete" status is available for suggestions.
Fight player and quality of life
- The fight player now shows life changes in real-time with floating text and a smooth health bar animation, much easier to follow damage and heals!
- A button lets you clear mark() and markText() in the player (shortcut M), handy when things get messy.
- The /br chat command lets you invite players to Battle Royale, with a real-time counter of registered players and a button to join directly.
- BR notifications now show the leek name that participated.
- In team test scenarios, you can now choose the turret's AI and limit the number of turns.
- Also: detailed tooltip on the fight counter (free/paid/team breakdown), search by ID in rankings, limit of 20 attacks/day against the same opponent in farmer mode, theme selector in the console synced with the editor, and many other small improvements.
Many bug fixes too: the Unbridled Gazor's passive wasn't triggering on aftereffect damage, replacing right-to-left selected text didn't work on Firefox, the changelog popup never showed up, mobile buttons were broken since Vue 3, and more.
Enjoy the game and see you in the garden! :)
Pilow