Merge pull request #22 from SWG-Source/client-lair-interactivity-search-reset

Updates to lair interactivity.

This feature must be enabled through the server configuration. When disabled, the vanilla lair search behavior remains unchanged.

When enabled, lair interactivity allows server operators to configure:

- reset time, allowing a lair to be searched again after a configured delay
- egg search chance
- nothing-found chance
- empty-lair chance
- luck usage
- egg reward multiplier

The bug chance is derived from the remaining chance after `eggChance` and `nothingChance`.

This also adds an `adminLair` command with the following options:

- `adminLair info` — shows the current search state for the targeted lair
- `adminLair set` — marks the targeted lair as searched
- `adminLair clear` — clears the search state from the targeted lair

The command requires god mode.

Example `localOptions.cfg` server configuration:

```ini
#====================Lair Interactivity Settings====================

[LairInteractivity]
enabled=true
resetMinutes=1
eggChance=80
nothingChance=10
emptyChance=35
useLuck=true
eggAmountMultiplierPercent=500
This commit is contained in:
Heron
2026-05-12 14:39:30 -04:00
committed by GitHub
2 changed files with 0 additions and 0 deletions
Binary file not shown.
Binary file not shown.