-
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
[Port] Experimental Teleporter / Экспериментальный Телепортатор #63
Conversation
Warning Rate limit exceeded@Spatison has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 13 minutes and 3 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThis pull request introduces the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
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 (
|
RSI Diff Bot; head commit 058b4fb merging into f3dd435 Resources/Textures/_White/Objects/Devices/experimentalsyndicateteleporter.rsi
|
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: 6
Outside diff range and nitpick comments (3)
Resources/Audio/_White/Object/Devices/attributions.yml (1)
4-4
: Add a newline at the end of the file.The YAML file is missing a newline character at the end. While this does not affect the functionality, it is considered a best practice to include a newline at the end of files.
To fix this, simply add a newline at the end of the file.
Tools
yamllint
[error] 4-4: no new line character at the end of file
(new-line-at-end-of-file)
Resources/Prototypes/_White/Entities/Objects/Devices/Syndicate_Gadgets/experimental_teleporter.yml (1)
16-16
: Add a newline at the end of the file.To address the static analysis hint and maintain consistency with coding standards, please add a newline character at the end of the file.
rechargeDuration: 10 +
Tools
yamllint
[error] 16-16: no new line character at the end of file
(new-line-at-end-of-file)
Content.Server/_White/Teleporter/ExperimentalTeleporterSystem.cs (1)
103-103
: Use constants for tag names instead of string literalsHardcoding tag names like
"Wall"
as string literals can lead to errors if the tag name changes.Define a constant or use an existing enumeration for the
"Wall"
tag to improve maintainability.// For example: private const string WallTag = "Wall"; // Then use: return anchoredEntities.Any(x => _tag.HasTag(x, WallTag));
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (6)
Resources/Audio/_White/Object/Devices/experimentalsyndicateteleport.ogg
is excluded by!**/*.ogg
Resources/Textures/_White/Objects/Devices/experimentalsyndicateteleporter.rsi/icon.png
is excluded by!**/*.png
Resources/Textures/_White/Objects/Devices/experimentalsyndicateteleporter.rsi/in.png
is excluded by!**/*.png
Resources/Textures/_White/Objects/Devices/experimentalsyndicateteleporter.rsi/inhand-left.png
is excluded by!**/*.png
Resources/Textures/_White/Objects/Devices/experimentalsyndicateteleporter.rsi/inhand-right.png
is excluded by!**/*.png
Resources/Textures/_White/Objects/Devices/experimentalsyndicateteleporter.rsi/out.png
is excluded by!**/*.png
Files selected for processing (10)
- Content.Server/_White/Teleporter/ExperimentalTeleporterComponent.cs (1 hunks)
- Content.Server/_White/Teleporter/ExperimentalTeleporterSystem.cs (1 hunks)
- Resources/Audio/_White/Object/Devices/attributions.yml (1 hunks)
- Resources/Locale/en-US/_white/store/uplink-catalog.ftl (1 hunks)
- Resources/Locale/ru-RU/_white/prototypes/entities/objects/device/syndicate_gadgets/experimental-teleporter.ftl (1 hunks)
- Resources/Locale/ru-RU/_white/store/uplink-catalog.ftl (1 hunks)
- Resources/Prototypes/_White/Catalog/uplink_catalog.yml (1 hunks)
- Resources/Prototypes/_White/Entities/Effects/effects.yml (1 hunks)
- Resources/Prototypes/_White/Entities/Objects/Devices/Syndicate_Gadgets/experimental_teleporter.yml (1 hunks)
- Resources/Textures/_White/Objects/Devices/experimentalsyndicateteleporter.rsi/meta.json (1 hunks)
Additional context used
yamllint
Resources/Audio/_White/Object/Devices/attributions.yml
[error] 4-4: no new line character at the end of file
(new-line-at-end-of-file)
Resources/Prototypes/_White/Entities/Effects/effects.yml
[error] 39-39: no new line character at the end of file
(new-line-at-end-of-file)
Resources/Prototypes/_White/Entities/Objects/Devices/Syndicate_Gadgets/experimental_teleporter.yml
[error] 16-16: no new line character at the end of file
(new-line-at-end-of-file)
Additional comments not posted (13)
Resources/Audio/_White/Object/Devices/attributions.yml (1)
1-4
: LGTM!The attribution metadata fields provide the necessary information for the audio file, including the file name, license, copyright, and source URL.
Tools
yamllint
[error] 4-4: no new line character at the end of file
(new-line-at-end-of-file)
Resources/Locale/ru-RU/_white/prototypes/entities/objects/device/syndicate_gadgets/experimental-teleporter.ftl (1)
1-2
: LGTM!The Russian localization entries for the experimental teleporter look good. The translations are clear and accurately describe the functionality of the device.
Resources/Prototypes/_White/Entities/Objects/Devices/Syndicate_Gadgets/experimental_teleporter.yml (1)
1-16
: LGTM! The experimental teleporter prototype is well-defined.The entity prototype for the experimental syndicate teleporter is structured correctly and includes all the necessary components for its functionality. The name and description provide clear information about the item's purpose and mechanics. The sprite, experimental teleporter, limited charges, and auto recharge components work together to create a balanced and engaging gameplay feature.
Tools
yamllint
[error] 16-16: no new line character at the end of file
(new-line-at-end-of-file)
Resources/Locale/en-US/_white/store/uplink-catalog.ftl (1)
7-8
: LGTM!The addition of the "Experimental syndicate teleporter" item and its description are consistent with the PR objectives and the AI-generated summary. The description provides clear details about the item's functionality.
Resources/Locale/ru-RU/_white/store/uplink-catalog.ftl (2)
5-5
: LGTM!Adding a newline at the end of the file is a good practice for consistency and to avoid potential issues with file parsing.
7-8
: LGTM!The new entries for the experimental teleporter are consistent with the format of other entries in the file. The name and description provide relevant information about the teleporter and are localized in Russian, which is consistent with the purpose of the file.
Resources/Prototypes/_White/Catalog/uplink_catalog.yml (1)
11-20
: LGTM!The new listing entry for the
UplinkExperimentalSyndicateTeleporter
is properly structured and includes all the necessary attributes. The cost and categorization seem appropriate for a utility item.Note: The actual functionality and balance of the item will depend on the implementation of the
ExperimentalSyndicateTeleporter
entity, which should be reviewed separately.Resources/Prototypes/_White/Entities/Effects/effects.yml (1)
1-20
: LGTM!The
ExperimentalTeleporterInEffect
entity is well-structured and aligns with the PR objective of introducing teleportation mechanics. The combination of components effectively creates a short-lived visual effect for the teleportation entry point.Resources/Textures/_White/Objects/Devices/experimentalsyndicateteleporter.rsi/meta.json (5)
2-2
: LGTM!The
version
property is set to a valid integer.
3-4
: LGTM!The
license
andcopyright
properties are correctly specified. The chosen CC-BY-SA-3.0 license allows using the texture with proper attribution, which is provided.
5-8
: LGTM!The
size
property specifies valid dimensions for the texture.
9-121
: LGTM!The
states
property correctly defines the animation states for the texture:
- The
icon
state has a simple animation.- The
inhand-left
andinhand-right
states have directional sprites for holding the item.- The
in
andout
states have directional animations for the item entering and exiting, likely for the teleportation effect.The chosen frame counts and durations seem appropriate.
1-122
: LGTM!The JSON file is well-structured and valid:
- The syntax and formatting are correct.
- All required properties for a texture metadata file are present.
- The chosen values for each property seem appropriate and consistent.
The file should parse without issues and correctly serve its purpose of providing metadata for the texture resource.
- type: entity | ||
id: ExperimentalTeleporterOutEffect | ||
name: experimental syndicate teleporter out effect | ||
components: | ||
- type: TimedDespawn | ||
lifetime: 0.6 | ||
- type: EvaporationSparkle | ||
- type: Transform | ||
noRot: true | ||
anchored: true | ||
- type: Sprite | ||
layers: | ||
- sprite: /Textures/_White/Objects/Devices/experimentalsyndicateteleporter.rsi | ||
state: out | ||
shader: unshaded | ||
netsync: false | ||
drawdepth: Effects | ||
- type: PointLight | ||
color: "#008DFE" |
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.
LGTM, but please add a newline at the end of the file.
The ExperimentalTeleporterOutEffect
entity is well-structured and complements the ExperimentalTeleporterInEffect
entity to create the visual effects for the teleportation exit point. The code aligns with the PR objective.
However, please add a newline at the end of the file to adhere to the POSIX standard and avoid potential issues with some tools.
Apply this diff to fix the missing newline:
- type: PointLight
color: "#008DFE"
+
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
- type: entity | |
id: ExperimentalTeleporterOutEffect | |
name: experimental syndicate teleporter out effect | |
components: | |
- type: TimedDespawn | |
lifetime: 0.6 | |
- type: EvaporationSparkle | |
- type: Transform | |
noRot: true | |
anchored: true | |
- type: Sprite | |
layers: | |
- sprite: /Textures/_White/Objects/Devices/experimentalsyndicateteleporter.rsi | |
state: out | |
shader: unshaded | |
netsync: false | |
drawdepth: Effects | |
- type: PointLight | |
color: "#008DFE" | |
- type: entity | |
id: ExperimentalTeleporterOutEffect | |
name: experimental syndicate teleporter out effect | |
components: | |
- type: TimedDespawn | |
lifetime: 0.6 | |
- type: EvaporationSparkle | |
- type: Transform | |
noRot: true | |
anchored: true | |
- type: Sprite | |
layers: | |
- sprite: /Textures/_White/Objects/Devices/experimentalsyndicateteleporter.rsi | |
state: out | |
shader: unshaded | |
netsync: false | |
drawdepth: Effects | |
- type: PointLight | |
color: "#008DFE" | |
Tools
yamllint
[error] 39-39: no new line character at the end of file
(new-line-at-end-of-file)
Content.Server/_White/Teleporter/ExperimentalTeleporterSystem.cs
Outdated
Show resolved
Hide resolved
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Content.Server/_White/Teleporter/ExperimentalTeleporterSystem.cs
Outdated
Show resolved
Hide resolved
Content.Server/_White/Teleporter/ExperimentalTeleporterSystem.cs
Outdated
Show resolved
Hide resolved
Content.Server/_White/Teleporter/ExperimentalTeleporterSystem.cs
Outdated
Show resolved
Hide resolved
* teleporter-WWDP WWhiteDreamProject/wwdpublic#63 * ну-ка * 2 * 3 * 4 * 5 * Update SharedLayingDownSystem.cs * 6 * 7 * ghost * 8 --------- Co-authored-by: Kayzel <[email protected]>
Описание PR
Порт экспериментального телепорта синдиката
Медиа
Видео
Изменения
🆑 Spatison