# The Perfect Tower II v0.49.0 (4 Nov 2024)

Web version: https://www.perfecttower2.com/changelog/0.49.0/

## New Stuff

- Added 'execution budget' to AI scripts
- Added AI setting to configure AI overlay refresh interval
- Added AI setting 'Disable scripts on import'
- Added AI toggle hotkey to AI setting menu in addition to the options menu
- Added AI action 'Game: Set Pause'
- Added AI action 'Game: Pause'
- Added AI action 'Game: Unpause'
- Added AI function 'Game: Resource'
- Added AI function 'Bool: Not'
- Added AI function 'Game: Is Paused'
- Added AI function 'Basic: Budget'
- Added AI function 'Basic: Wait Frame'
- Added middle mouse hotkey to edit scripts in Headquarters AI
- Added help page for AI scripting

## Changes

- Offensive modules are being loaded from data files instead of being hardcoded
- Refactored how the AI works internally
- AI scripts have a fixed upper limit of 50 actions, 10 conditions and 10 impulses instead of being based on RAM
- Headquarters RAM affects max. execution budget of scripts
- Smaller updates to the Headquarters UI
- Removed ||wave horizon's era based limitation||
- Removed ||the additional effect of wave breach (wave horizon era limit)||

## Fixes

- Fixed an issue where sandbox mode could reference discarded unit types from previous sessions
- Fixed login with FSS account being disabled
