feat: add JailService and bust-out config keys

Add JailService with bustOut(), sendToJail(), releaseFromJail(), and
calculateBustOutChance() methods. Add two config keys (bust_out_stat_multiplier
and bust_out_max_chance) to the jail config block.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Doar Mihai
2026-06-28 22:42:59 +03:00
co-authored by Claude Sonnet 4.6
parent 68c4bbabd7
commit 799f46a5f2
2 changed files with 95 additions and 4 deletions
+6 -4
View File
@@ -79,10 +79,12 @@ return [
// Jail system configuration
'jail' => [
'sentence_length' => 3600, // 1 hour base sentence
'breakout_chance' => 0.05, // 5% chance to break out per attempt
'breakout_cost' => 1000, // Cost to attempt breakout
'sentence_multiplier' => 1.5, // Sentence increases by 50% for repeat offenses
'sentence_length' => 3600,
'breakout_chance' => 0.05,
'breakout_cost' => 1000,
'sentence_multiplier' => 1.5,
'bust_out_stat_multiplier' => 0.003, // per combined dex+speed point
'bust_out_max_chance' => 0.80, // cap at 80%
],
// Economy configuration