# TBOI Tournament Scoring System

This document outlines the complete rules and logic for the custom tournament score, as currently implemented in the `Tournament Score Mod`.

## 1. Base Score & Time Penalty
- **Starting Score**: All runs begin with exactly `100` points.
- **Time Penalty**: Every **1 second** of in-game time reduces the score by `1` point.
  - *Note: This uses the game's internal frame counter (30 frames = 1 second), meaning the penalty correctly pauses when the game is paused, during menus, or between room transitions.*

## 2. Room Clear Rewards
Points are awarded instantly upon the "room clear" event (when doors unlock and rewards spawn):
- **Normal Rooms & Curse Rooms**: `+20 points`
- **Challenge Rooms & Miniboss Rooms**: `+50 points`
- **Standard Boss Rooms**: `+200 points`
  - *(Note: XL floors have two boss rooms; both will award +200 points upon being cleared).*

## 3. Special Objectives
Specific objectives award bonus points.
The points described here do not stack with the regular boss room points.

| Objective | Reward |
| :--- | :--- |
| **Boss Rush** | `+400 points` |
| **The Lamb** | `+400 points` |
| **Blue Baby (???)** | `+400 points` |
| **Hush** | `+500 points` |
| **Mega Satan** | `+600 points` |
| **Delirium** | `+800 points` |

## 4. Item Pickups
- **Value**: `+20 points` per item currently held by the player.
- **Mechanics**: The score dynamically tracks the player's total item count (passive or active):
  - Picking up a new passive or active item grants `+20 points`.
  - Swapping an active item for another active item does not change the total item count, awarding `0 points`.
  - Consuming or permanently losing an item (e.g. using Diplopia) lowers the count, effectively removing `20 points`.
  - Characters who start the game with items (e.g. Isaac with the D6) will instantly gain `+20 points` for each starting item at the beginning of the run.
- **Exclusions**: Trinkets, cards, pills, runes, and basic consumables (coins/bombs/keys) do not count as collectibles and award no points.
