Files
cm/game_balance/players_config.py
2026-02-11 17:44:26 +03:00

158 lines
5.2 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
НАСТРОЙКИ ИГРОКОВ
"""
class PlayersConfig:
# Стартовые условия
STARTING_CAPITAL = 100000
TARGET_CAPITAL = 50000000
# Способности игроков
ABILITIES = {
'crisis_investor': {
'name': 'Кризисный инвестор',
'description': '+20% к доходу при падении рынка более 10%',
'cooldown': 3,
'effect': {
'type': 'crisis_bonus',
'value': 0.2,
'condition': 'market_drop > 0.1'
}
},
'lobbyist': {
'name': 'Лоббист',
'description': 'Может временно снизить налоги на 5%',
'cooldown': 2,
'effect': {
'type': 'tax_reduction',
'value': 0.05,
'duration': 1
}
},
'predictor': {
'name': 'Предсказатель',
'description': 'Видит следующее случайное событие за 1 месяц',
'cooldown': 4,
'effect': {
'type': 'event_preview',
'lookahead': 1
}
},
'golden_pillow': {
'name': 'Золотая подушка',
'description': 'Может защитить 20% капитала от любых потерь',
'cooldown': 6,
'effect': {
'type': 'capital_protection',
'percentage': 0.2,
'duration': 1
}
},
'shadow_accountant': {
'name': 'Теневая бухгалтерия',
'description': 'Раз в игру уменьшить налоги на 50%',
'cooldown': None,
'effect': {
'type': 'tax_evasion',
'value': 0.5
}
},
'credit_magnate': {
'name': 'Кредитный магнат',
'description': 'Может давать кредиты другим игрокам под свой процент',
'cooldown': 1,
'effect': {
'type': 'lend_money',
'max_amount_multiplier': 0.5
}
},
'bear_raid': {
'name': 'Медвежий набег',
'description': 'Вызвать искусственное падение цены актива на 15%',
'cooldown': 4,
'effect': {
'type': 'price_manipulation',
'direction': 'down',
'value': 0.15
}
},
'fake_news': {
'name': 'Фейковые новости',
'description': 'Подменить одно случайное событие',
'cooldown': 6,
'effect': {
'type': 'event_manipulation',
'scope': 'next_event'
}
},
'dividend_king': {
'name': 'Король дивидендов',
'description': '+10% дохода от всех дивидендных активов',
'cooldown': 0,
'effect': {
'type': 'dividend_bonus',
'value': 0.1
}
},
'raider_capture': {
'name': 'Рейдерский захват',
'description': 'Попытаться отобрать 5% капитала у лидера',
'cooldown': 3,
'effect': {
'type': 'capital_raid',
'percentage': 0.05,
'success_chance': 0.6,
'penalty': 0.1
}
},
'mafia_connections': {
'name': 'Мафиозные связи',
'description': 'Отменить одно негативное событие для себя',
'cooldown': 5,
'effect': {
'type': 'event_block',
'condition': 'negative_event'
}
},
'economic_advisor': {
'name': 'Экономический советник',
'description': 'Раз в 3 месяца изменить налоговую ставку для всех',
'cooldown': 3,
'effect': {
'type': 'tax_policy',
'change_range': (-0.05, 0.05)
}
},
'currency_speculator': {
'name': 'Валютный спекулянт',
'description': 'На 1 месяц отвязать рубль от нефти',
'cooldown': 4,
'effect': {
'type': 'correlation_break',
'assets': ['oil', 'stock_gazprom'],
'duration': 1
}
}
}
# Ограничения по владению
MAX_ASSETS_PER_TYPE = {
'bonds': None,
'stocks': 0.4,
'real_estate': 0.5,
'crypto': None,
'commodities': 0.3,
'business': 0.4,
'unique': 1.0,
}
# Лимиты по месяцам
PURCHASE_LIMITS_BY_MONTH = {
1: 0.1,
2: 0.2,
3: 0.4,
4: 0.6,
5: 0.8,
6: 1.0,
}