-
Notifications
You must be signed in to change notification settings - Fork 34
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
[Feature] Minor races tweaks #49
Conversation
WalkthroughThe pull request introduces modifications to various species configurations and gameplay mechanics, including an enhancement to the Changes
Suggested labels
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (7)
Files skipped from review due to trivial changes (1)
Files skipped from review as they are similar to previous changes (5)
Additional comments not posted (5)
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? TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 2
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (9)
- Content.Server/GameTicking/GameTicker.Player.cs (1 hunks)
- Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs (3 hunks)
- Content.Shared/Preferences/HumanoidCharacterProfile.cs (1 hunks)
- Resources/Prototypes/Entities/Mobs/Species/arachnid.yml (1 hunks)
- Resources/Prototypes/Nyanotrasen/Species/felinid.yml (1 hunks)
- Resources/Prototypes/Species/arachne.yml (1 hunks)
- Resources/Prototypes/Species/dwarf.yml (1 hunks)
- Resources/Prototypes/Species/harpy.yml (1 hunks)
- Resources/Prototypes/Species/reptilian.yml (1 hunks)
Additional comments not posted (24)
Resources/Prototypes/Species/dwarf.yml (3)
10-12
: Approved: Adjusted height parameters for Dwarfs.The changes to
minHeight
andmaxHeight
are approved as they provide a more realistic and flexible character customization. Verify that these changes do not negatively impact any gameplay mechanics or interactions that depend on character size.
13-15
: Approved: Adjusted width parameters for Dwarfs.The changes to
minWidth
andmaxWidth
are approved as they align with the goal of providing more realistic proportions for Dwarfs. Ensure that these changes are consistent with other species and do not negatively impact gameplay mechanics, especially those related to navigation or interaction with the environment.
4-4
: Approved: Enable Dwarfs at round start.The change to set
roundStart
totrue
is approved as it aligns with the PR's objectives. Ensure that this change is integrated properly with the game's UI and other configurations where playable races are listed.Resources/Prototypes/Species/harpy.yml (4)
10-10
: Approved minHeight change.The increase in minHeight from 0.6 to 0.8 is noted and approved. Ensure to verify its impact on gameplay mechanics and interactions.
15-15
: Approved maxWidth change.The reduction in maxWidth from 1.15 to 1 is approved. Ensure to verify its impact on customization options and gameplay interactions.
Verification successful
Verified: maxWidth change for Harpy is consistent and does not restrict customization.
The
maxWidth
for the Harpy species has been set to 1, aligning with the Felinid species. This change appears to be part of a standardization effort and does not unduly restrict customization options. No further action is needed.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the new maxWidth does not restrict customization unduly. # Test: Search for any gameplay scripts that use maxWidth. Expect: No undue restrictions. rg --type yaml -A 5 $'maxWidth: 1'Length of output: 1527
13-13
: Approved minWidth change.The increase in minWidth from 0.55 to 0.8 is noted and approved. Ensure to verify its impact on gameplay mechanics and interactions.
Verification successful
Approved minWidth change for Harpy.
The increase in
minWidth
for the Harpy species to 0.8 aligns with other species configurations and appears to be part of a balancing effort. No direct gameplay impacts were found in the codebase, but manual verification in a gameplay context is recommended to ensure no unintended effects.
- Ensure to test the Harpy species in-game to confirm that the new
minWidth
does not adversely affect gameplay mechanics or interactions.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the new minWidth does not affect gameplay negatively. # Test: Search for any gameplay scripts that use minWidth. Expect: No negative impacts. rg --type yaml -A 5 $'minWidth: 0.8'Length of output: 1195
12-12
: Approved maxHeight change.The reduction in maxHeight from 1.1 to 1 is approved. Ensure to verify its impact on customization options and gameplay interactions.
Verification successful
Verified maxHeight change for harpy.
The reduction in
maxHeight
forharpy
to 1 is consistent with other species likefelinid
and does not appear to restrict customization or gameplay interactions. No undue restrictions were found in the context of gameplay scripts.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the new maxHeight does not restrict customization unduly. # Test: Search for any gameplay scripts that use maxHeight. Expect: No undue restrictions. rg --type yaml -A 5 $'maxHeight: 1'Length of output: 1521
Resources/Prototypes/Species/reptilian.yml (6)
14-14
: Approved minHeight change.The increase in minHeight from 0.7 to 0.9 is noted and approved. Ensure to verify its impact on gameplay mechanics and interactions.
Verification successful
Approved minHeight change.
The increase in
minHeight
from 0.7 to 0.9 inreptilian.yml
appears consistent with other species configurations and does not show direct impacts on gameplay scripts. However, ensure to verify its impact through gameplay testing to confirm no unintended effects occur.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the new minHeight does not affect gameplay negatively. # Test: Search for any gameplay scripts that use minHeight. Expect: No negative impacts. rg --type yaml -A 5 $'minHeight: 0.9'Length of output: 809
15-15
: Approved defaultHeight change.The increase in defaultHeight from 0.95 to 1.1 is noted and approved. Ensure to verify its impact on gameplay mechanics and interactions.
Verification successful
Verified defaultHeight change.
The increase in
defaultHeight
to 1.1 in thereptilian.yml
file appears to be isolated, with no direct references found in other gameplay scripts. It is unlikely to negatively impact gameplay, but a manual verification in the game environment is recommended to ensure no unintended effects.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the new defaultHeight does not affect gameplay negatively. # Test: Search for any gameplay scripts that use defaultHeight. Expect: No negative impacts. rg --type yaml -A 5 $'defaultHeight: 1.1'Length of output: 391
16-16
: Approved maxHeight change.The slight reduction in maxHeight from 1.25 to 1.2 is approved. Ensure to verify its impact on customization options and gameplay interactions.
Verification successful
No impact on gameplay or customization logic found.
The change in
maxHeight
for thereptilian
species from 1.25 to 1.2 is confined to YAML configuration files and does not appear in any gameplay scripts or logic files. This suggests that the change is purely configurational and should not affect gameplay or customization options.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the new maxHeight does not restrict customization unduly. # Test: Search for any gameplay scripts that use maxHeight. Expect: No undue restrictions. rg --type yaml -A 5 $'maxHeight: 1.2'Length of output: 393
Script:
#!/bin/bash # Broaden the search to include other file types that might reference maxHeight. rg --type-add 'scripts:*.{js,ts,py}' --type scripts --type yaml --type json 'maxHeight'Length of output: 391
19-19
: Approved maxWidth change.The reduction in maxWidth from 1.3 to 1.2 is approved. Ensure to verify its impact on customization options and gameplay interactions.
Verification successful
Approved maxWidth change.
The reduction in
maxWidth
from 1.3 to 1.2 inreptilian.yml
is localized and does not affect other parts of the codebase. This change is unlikely to restrict customization options or gameplay interactions.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the new maxWidth does not restrict customization unduly. # Test: Search for any gameplay scripts that use maxWidth. Expect: No undue restrictions. rg --type yaml -A 5 $'maxWidth: 1.2'Length of output: 403
18-18
: Approved defaultWidth change.The increase in defaultWidth from 0.95 to 1.1 is noted and approved. Ensure to verify its impact on gameplay mechanics and interactions.
Verification successful
Verified: No gameplay impact from defaultWidth change.
The increase in
defaultWidth
for the reptilian species is consistent with similar parameters in other species configuration files. There is no evidence of this parameter affecting gameplay mechanics directly. The change is localized to visual or sprite configurations.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the new defaultWidth does not affect gameplay negatively. # Test: Search for any gameplay scripts that use defaultWidth. Expect: No negative impacts. rg --type yaml -A 5 $'defaultWidth: 1.1'Length of output: 400
Script:
#!/bin/bash # Comprehensive search for any references to defaultWidth across all file types. rg 'defaultWidth' -A 5Length of output: 1641
17-17
: Approved minWidth change.The increase in minWidth from 0.65 to 0.9 is noted and approved. Ensure to verify its impact on gameplay mechanics and interactions.
Verification successful
Approved minWidth change for reptilian species.
The increase in
minWidth
to 0.9 is consistent with the configuration patterns for other species and does not impact gameplay mechanics negatively. This change is localized to the species configuration.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the new minWidth does not affect gameplay negatively. # Test: Search for any gameplay scripts that use minWidth. Expect: No negative impacts. rg --type yaml -A 5 $'minWidth: 0.9'Length of output: 401
Script:
#!/bin/bash # Description: Search for any references to minWidth in the codebase to verify its usage. # Test: Search for any references to minWidth in YAML files. rg --type yaml 'minWidth'Length of output: 329
Resources/Prototypes/Entities/Mobs/Species/arachnid.yml (2)
127-127
: Approved addition of Spider type.The addition of the
Spider
type is noted and approved. Ensure to verify its integration and functionality within the game.
128-128
: Approved addition of IgnoreSpiderWeb type.The addition of the
IgnoreSpiderWeb
type is noted and approved. Ensure to verify its integration and functionality within the game.Verification successful
The
IgnoreSpiderWebComponent
is currently a marker component.The
IgnoreSpiderWebComponent
is defined but contains no logic or properties, indicating it may serve as a marker within the system. Ensure to verify if there are systems or components that utilize this marker for functionality related to spider webs.
- File:
Content.Shared/Spider/IgnoreSpiderWebComponent.cs
- Component:
IgnoreSpiderWebComponent
is registered but empty.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the new IgnoreSpiderWeb type integrates well with existing gameplay mechanics. # Test: Search for any gameplay scripts that use the IgnoreSpiderWeb type. Expect: Seamless integration. rg --type yaml -A 5 $'type: IgnoreSpiderWeb'Length of output: 1813
Script:
#!/bin/bash # Description: Search for any references to IgnoreSpiderWeb in non-YAML files to verify its functionality. # Test: Look for any logic or scripts that reference IgnoreSpiderWeb. rg 'IgnoreSpiderWeb' --type-not yaml -A 5Length of output: 311
Script:
#!/bin/bash # Description: Extract the full content of IgnoreSpiderWebComponent.cs to understand its implementation. # Extract the full content of the IgnoreSpiderWebComponent.cs file. cat Content.Shared/Spider/IgnoreSpiderWebComponent.csLength of output: 179
Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs (4)
140-140
: Approved change to maximum height.The decrease in maximum height from 1.25f to 1.1f is approved. Ensure to verify how this affects character interactions with the environment.
128-128
: Approved change to minimum height.The increase in minimum height from 0.75f to 0.9f is approved. However, ensure to verify the impact on gameplay elements such as collision detection and animations.
158-158
: Approved change to maximum width.The decrease in maximum width from 1.3f to 1.1f is approved. Ensure to verify how this affects character navigation through tight spaces.
146-146
: Approved change to minimum width.The increase in minimum width from 0.7f to 0.9f is approved. However, ensure to verify the impact on character spacing and interactions.
Content.Server/GameTicking/GameTicker.Player.cs (1)
166-168
: Approved addition of validation logic inGetPlayerProfile
.The introduction of a validation step before returning the player profile enhances the robustness of the method and helps prevent issues related to invalid profiles. This is a positive change that improves the reliability of the game's player management system.
Content.Shared/Preferences/HumanoidCharacterProfile.cs (1)
535-537
: Approved simplification inEnsureValid
method.The direct application of
Math.Clamp
to bothHeight
andWidth
simplifies the code and ensures that these properties are always within the valid range. This change improves the maintainability and reliability of the method.Resources/Prototypes/Nyanotrasen/Species/felinid.yml (2)
12-12
: Change approved for maxHeight.The reduction in
maxHeight
to 1 aligns with the PR's objective to tighten size parameters.
15-15
: Change approved for maxWidth.The reduction in
maxWidth
to 1 aligns with the PR's objective to tighten size parameters.Resources/Prototypes/Species/arachne.yml (1)
4-4
: Change approved with commendation for clear documentation.Setting
roundStart
tofalse
is well-documented with a clear reason provided. This transparency helps players understand the change.
I need upstream UPD: I did not need it |
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.
WD EDIT надо добавить
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.
Надо добавить WD EDIT там где это надо
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.
👍
Описание PR
Описание.
Изменения
🆑