items
What an item box gives and what each item does. Racer rolls an item when its kart drives through a box and fires it; RaceAI decides when to fire; RaceHud shows the held item. The rolls are pure, so the tests and every AI personality share them. Back markers roll the strong boosts…
items
What an item box gives and what each item does. Racer rolls an item when its kart drives through a box and fires it; RaceAI decides when to fire; RaceHud shows the held item. The rolls are pure, so the tests and every AI personality share them. Back markers roll the strong boosts more often and leaders roll oil more often: the classic kart-racer catch-up.
Items: boost (Speed Boost: one 1.6 s push to 1.5x top speed), turbo (Triple Boost: three 1.1 s pushes) and oil (Oil Slick: drops an OilSlick behind the kart that spins out whoever drives over it).
Functions
roll(place, racers, r): the item a racer inplaceofracersgets from a uniform numberrin [0, 1).weights(place, racers): the{ boost, turbo, oil }weights behind that roll.get(id): an item's definition (label,short,uses,boostSeconds,boostSpeed,drops,color), or nil.names(): the item ids (alsoORDER).
Scoped to this part · feeds back into the world's score.