-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix] Moods fixes #1001
[Fix] Moods fixes #1001
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,68 +1,81 @@ | ||||||||||||
# Hunger | ||||||||||||
- type: moodEffect | ||||||||||||
id: HungerOverfed | ||||||||||||
moodChange: -10 | ||||||||||||
moodChange: 10 | ||||||||||||
category: "Hunger" | ||||||||||||
hidden: true | ||||||||||||
|
||||||||||||
- type: moodEffect | ||||||||||||
id: HungerOkay | ||||||||||||
moodChange: 7 | ||||||||||||
category: "Hunger" | ||||||||||||
hidden: true | ||||||||||||
|
||||||||||||
- type: moodEffect | ||||||||||||
id: HungerPeckish | ||||||||||||
moodChange: -3 | ||||||||||||
category: "Hunger" | ||||||||||||
hidden: true | ||||||||||||
|
||||||||||||
- type: moodEffect | ||||||||||||
id: HungerStarving | ||||||||||||
moodChange: -7 | ||||||||||||
category: "Hunger" | ||||||||||||
hidden: true | ||||||||||||
|
||||||||||||
# Thirst | ||||||||||||
- type: moodEffect | ||||||||||||
id: ThirstOverHydrated | ||||||||||||
moodChange: -3 | ||||||||||||
moodChange: 10 | ||||||||||||
category: "Thirst" | ||||||||||||
hidden: true | ||||||||||||
Comment on lines
+29
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Необходимо согласовать значения эффектов жажды и голода Обнаружены несоответствия в балансе эффектов:
Рекомендуется привести значения в соответствие с общей системой баланса эффектов настроения. Also applies to: 37-37, 43-43, 49-49 |
||||||||||||
|
||||||||||||
- type: moodEffect | ||||||||||||
id: ThirstOkay | ||||||||||||
moodChange: 7 | ||||||||||||
category: "Thirst" | ||||||||||||
hidden: true | ||||||||||||
|
||||||||||||
- type: moodEffect | ||||||||||||
id: ThirstThirsty | ||||||||||||
moodChange: -3 | ||||||||||||
category: "Thirst" | ||||||||||||
hidden: true | ||||||||||||
|
||||||||||||
- type: moodEffect | ||||||||||||
id: ThirstParched | ||||||||||||
moodChange: -7 | ||||||||||||
category: "Thirst" | ||||||||||||
hidden: true | ||||||||||||
|
||||||||||||
# Health | ||||||||||||
- type: moodEffect | ||||||||||||
id: HealthNoDamage | ||||||||||||
moodChange: 0 | ||||||||||||
hidden: true | ||||||||||||
category: "Health" | ||||||||||||
hidden: true | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Исправьте дублирование ключа 'hidden' В YAML файле обнаружено дублирование ключа 'hidden' для эффекта HealthNoDamage. Необходимо удалить дублирующую строку для корректной работы. id: HealthNoDamage
moodChange: 0
hidden: true
category: "Health"
- hidden: true 📝 Committable suggestion
Suggested change
🧰 Tools🪛 yamllint (1.35.1)[error] 57-57: duplication of key "hidden" in mapping (key-duplicates) 🪛 GitHub Actions: YAML Linter[error] Duplicate key 'hidden' found in YAML mapping. Each key in a YAML mapping must be unique. |
||||||||||||
|
||||||||||||
- type: moodEffect | ||||||||||||
id: HealthLightDamage | ||||||||||||
moodChange: -3 | ||||||||||||
category: "Health" | ||||||||||||
hidden: true | ||||||||||||
|
||||||||||||
- type: moodEffect | ||||||||||||
id: HealthOkayDamage | ||||||||||||
moodChange: -7 | ||||||||||||
category: "Health" | ||||||||||||
hidden: true | ||||||||||||
|
||||||||||||
- type: moodEffect | ||||||||||||
id: HealthSevereDamage | ||||||||||||
moodChange: -12 | ||||||||||||
category: "Health" | ||||||||||||
hidden: true | ||||||||||||
|
||||||||||||
- type: moodEffect | ||||||||||||
id: HealthHeavyDamage | ||||||||||||
moodChange: -20 | ||||||||||||
category: "Health" | ||||||||||||
hidden: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Подтверждено отсутствие timeout у эффекта NicotineWithdrawal
Анализ кодовой базы показал, что все другие эффекты отмены имеют явно заданные таймауты:
Рекомендованное добавление таймаута в 30 минут для NicotineWithdrawal является обоснованным и соответствует общей логике работы эффектов отмены в игре.
🔗 Analysis chain
Проверьте отсутствие timeout у NicotineWithdrawal
Эффект отмены никотина (
NicotineWithdrawal
) не имеет таймаута, в отличие от других эффектов отмены. Это может привести к постоянному негативному настроению. Рекомендуется добавить разумный timeout.Предлагаемые изменения:
id: NicotineWithdrawal moodChange: -7 #No timeout category: "NicotineAddiction" + timeout: 1800 #30 minutes hidden: true
🏁 Scripts executed
The following scripts were executed for the analysis:
Error: No shell scripts found
Script:
Length of output: 2687