forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 132
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
[TM] Spaceloot changes #1764
Open
m-dzianishchyts
wants to merge
4
commits into
ss220club:master
Choose a base branch
from
m-dzianishchyts:spaceloot-fix-tweak
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[TM] Spaceloot changes #1764
m-dzianishchyts
wants to merge
4
commits into
ss220club:master
from
m-dzianishchyts:spaceloot-fix-tweak
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reviewer's Guide by SourceryThis pull request fixes an issue where space loot was not spawning correctly. It also increases the available points for the space loot pool to account for additional spawns. Class diagram for spawn pool systemclassDiagram
class SpawnPool {
+available_points: 2200
+known_spawners: list
+guaranteed_spawners: list
+process_guaranteed_spawners()
}
class PoolSpawner {
+point_value
+spawn_pool_id
+Initialize()
+generate_loot_list()
}
SpawnPool "1" -- "*" PoolSpawner: contains
note for SpawnPool "Updated available_points
to 2200 for space loot"
Flow diagram for updated spawn pool logicflowchart TD
Start[Start Spawn Process] --> Init[Initialize Available Points]
Init --> ProcessGuaranteed[Process Guaranteed Spawners]
ProcessGuaranteed --> ShuffleSpawners[Shuffle Known Spawners]
ShuffleSpawners --> CopyList[Copy Known Spawners List]
CopyList --> CheckPoints{Available Points > 0?}
CheckPoints -->|Yes| CheckSpawners{Any Spawners Left?}
CheckSpawners -->|Yes| GetSpawner[Get Next Spawner]
GetSpawner --> CheckValue{Point Value <= Available Points?}
CheckValue -->|No| DeleteSpawner[Delete Spawner]
CheckValue -->|Yes| SpawnItem[Spawn Item]
SpawnItem --> UpdateList[Update Remaining List]
DeleteSpawner --> CheckPoints
UpdateList --> CheckPoints
CheckPoints -->|No| Finish[Finish & Cleanup]
CheckSpawners -->|No| Finish
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
github-actions
bot
added
🔧 Фикс
Переписываем ошибку так, чтобы она проявлялась в других обстоятельствах
Частичная модульность
Не всегда получается всё впихнуть в модуль, увы.
Улучшение
Наконец-то это сделали удобнее и лучше...
labels
Jan 24, 2025
у нас ЦК и гейты же пока не фигурируют никак в пуле спавна лута, рановато повышается бюджет, нет? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Частичная модульность
Не всегда получается всё впихнуть в модуль, увы.
📜 CL валиден
Этот чейнджлог будет успешно опубликован
Улучшение
Наконец-то это сделали удобнее и лучше...
Testmerge Required
🔧 Фикс
Переписываем ошибку так, чтобы она проявлялась в других обстоятельствах
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Что этот PR делает
Чинит спавн лута в космосе.
Увеличивает бюджет пула в связи с тем, что он расходуется дополнительно на ЦК и гейт.
Changelog
🆑 Maxiemar
fix: Исправлен спавн лута в космосе.
/:cl:
Summary by Sourcery
Fix space loot spawning and increase the available points for loot generation to account for additional usage in centcomm and the gateway.
Bug Fixes:
Enhancements: