Skip to content
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

Pr work #163

Merged
merged 8 commits into from
Dec 17, 2024
Merged

Pr work #163

merged 8 commits into from
Dec 17, 2024

Conversation

AserCreator
Copy link

@AserCreator AserCreator commented Dec 17, 2024

О чем PR

  • Теперь неизвестные шаттлы прибывают в сектор станции реже

Почему

Технические детали

Медиа

  • Я добавил скриншот/видео, показывающее изменения в игре или PR не нуждается в показе
  • Я проверил изменения на предмет багов

Summary by CodeRabbit

  • New Features

    • Adjusted game rules for various entities to enhance gameplay dynamics.
    • Updated event scheduling parameters for improved game balance.
    • Streamlined event occurrences for unknown shuttle types.
  • Bug Fixes

    • Corrected player limits and visibility settings in game presets.
  • Documentation

    • Clarified game preset attributes including maxPlayers and showInVote settings.

Copy link

coderabbitai bot commented Dec 17, 2024

Walkthrough

The pull request introduces modifications to game configuration files, focusing on adjusting game rules, event scheduling, and game presets. Changes include updating time parameters for space traffic control events, reducing the maximum occurrences of unknown shuttle events, and modifying player limits and voting visibility for various game presets. These updates aim to fine-tune gameplay mechanics and event frequencies across different game modes.

Changes

File Changes
Resources/Prototypes/GameRules/roundstart.yml - Updated SpaceTrafficControlEventScheduler timing parameters
- Modified SpaceTrafficControlFriendlyEventScheduler event timings
- Added RespawnTracker component to DeathMatch31
- Updated InactivityTimeRestart inactivity and round end parameters
Resources/Prototypes/GameRules/unknown_shuttles.yml - Reduced maxOccurrences to 1 for multiple shuttle events
- Removed commented-out entities from shuttle event tables
- Cleared children array in UnknownShuttlesHostileTable
Resources/Prototypes/game_presets.yml - Added maxPlayers: 3 to Extended preset
- Reduced Greenshift max players from 10 to 3
- Updated showInVote for Deathmatch and KesslerSyndrome presets

Poem

🚀 Rabbit's Rulebook Remix 🐰

Timers ticking, events in flight,
Shuttles dancing left and right,
Presets tweaked with careful care,
Game rules hopping everywhere!
A playful patch, a coding delight! 🎮


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🔭 Outside diff range comments (1)
Resources/Prototypes/game_presets.yml (1)

Line range hint 190-190: Reconsider enabling vote visibility for Deathmatch.

Making Deathmatch votable (showInVote: true) while having a maxPlayers limit of 5 could:

  • Lead to frequent vote requests for a very limited game mode
  • Cause frustration when players can't join due to the low player limit
  • Create confusion when the mode is voted for but can't accommodate all voters

Consider either:

  • Keeping showInVote: false for limited-capacity modes
  • Increasing maxPlayers if the mode is to be votable
🧹 Nitpick comments (1)
Resources/Prototypes/GameRules/roundstart.yml (1)

341-344: Document the reasoning behind specific timing values.

While the increased delays align with reducing shuttle frequency, the specific timing values (8900, 8720, 11200, 7900, 7720, 9200) would benefit from documentation explaining:

  • Why these specific values were chosen
  • What these timings represent in real gameplay duration
  • How they coordinate with other game events

Consider adding comments explaining the timing choices, for example:

 - type: BasicStationEventScheduler
-    minimumTimeUntilFirstEvent: 8900 #NES14-Changes
+    minimumTimeUntilFirstEvent: 8900 # ~148 minutes: Allows for station setup and early game progression
     minMaxEventTiming:
-      min: 8720
-      max: 11200
+      min: 8720 # ~145 minutes: Minimum time between shuttle events
+      max: 11200 # ~186 minutes: Maximum time between shuttle events

Also applies to: 353-356

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 36a1d5d and 6e8c83e.

📒 Files selected for processing (3)
  • Resources/Prototypes/GameRules/roundstart.yml (2 hunks)
  • Resources/Prototypes/GameRules/unknown_shuttles.yml (5 hunks)
  • Resources/Prototypes/game_presets.yml (2 hunks)
🔇 Additional comments (1)
Resources/Prototypes/GameRules/unknown_shuttles.yml (1)

61-61: LGTM: Changes align with PR objective.

The reduction of maxOccurrences to 1 for all shuttle events and the removal of hostile encounters effectively implements the goal of reducing unknown shuttle frequency in the station sector. The changes are consistent across all shuttle types, maintaining balance while reducing event frequency.

Also applies to: 71-71, 81-81, 101-101, 220-220

@@ -80,6 +80,7 @@
- shittersafari
name: extended-title
showInVote: false #2boring2vote # DeltaV - I'd like to disagree, used for periapsis.
maxPlayers: 3 # Stray
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Let me analyze the output to verify the concern about player limits.

The search results show:

  1. Most maps have maxPlayers ranging from 30-80 players
  2. Even smaller maps like 'reach' and 'frame' support 20 players
  3. Various game events and rules have minimumPlayers requirements:
    • Basic events require 10-15 players
    • Many station events expect 20-30 players
    • Some advanced events need 40-50 players

Let me generate the final response:

Setting maxPlayers to 3 is too restrictive and incompatible with game design

The codebase shows that the game is designed for significantly higher player counts:

  • Most maps support 30-80 players
  • Basic station events require 10-15 players minimum
  • Many gameplay mechanics expect 20+ players for proper functioning
🔗 Analysis chain

Consider increasing the player limits for Extended and Greenshift presets.

Setting maxPlayers to 3 for both Extended and Greenshift presets seems extremely restrictive. Such low player counts could:

  • Lead to underpopulated stations
  • Reduce player interaction and gameplay opportunities
  • Impact station maintenance and emergency response capabilities

Also applies to: 99-99

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if there are any station roles or systems that require more than 3 players
rg -A 2 "minPlayers:|minimumPlayers:" Resources/Prototypes/

Length of output: 20199

@GeneralGaws
Copy link
Collaborator

молимся чтоб прошли

@GeneralGaws
Copy link
Collaborator

ЗДЕСЬ я могу СРАТЬ

@GeneralGaws GeneralGaws merged commit c797c7e into EndrAnimet:master Dec 17, 2024
11 of 13 checks passed
This was referenced Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants