Phobos-developers / Phobos

Ares-compatible C&C Red Alert 2: Yuri's Revenge engine extension
GNU Lesser General Public License v3.0
302 stars 97 forks source link

Exclusive SuperWeapon Sidebar #1383

Closed NetsuNegi closed 2 months ago

NetsuNegi commented 2 months ago

In uimd.ini:

[Sidebar]
ExclusiveSuperWeaponSidebar=false  ; boolean
ExclusiveSuperWeaponSidebar.Max=0 ; integer

In rulesmd.ini

[SuperWeapon]
AllowInExclusiveSidebar=true  ; boolean

exclusive-sw-sidebar

Summary by CodeRabbit

Release Notes

coderabbitai[bot] commented 2 months ago

Walkthrough

The changes introduce several enhancements to the project, including expanded contributions in the CREDITS.md file, the addition of tactical button functionality in the user interface, and new properties related to cloaking mechanics and super weapon management. Multiple files were updated to incorporate these features, with new settings added to configuration files and classes modified to support additional functionalities. Overall, the updates improve the documentation, user interaction, and gameplay mechanics without altering existing code logic.

Changes

Files Change Summary
CREDITS.md Expanded contributions for NetsuNegi with two new entries: "Cloak Enhancement" and "Exclusive SuperWeapon Sidebar."
Phobos.vcxproj Added source and header files for TacticalButtonClass.
docs/New-or-Enhanced-Logics.md Introduced new cloaking mechanics with animation parameters and settings in rulesmd.ini.
docs/User-Interface.md Added "Exclusive SuperWeapon Sidebar" feature with configuration options in uimd.ini and rulesmd.ini.
docs/Whats-New.md Documented new features including "Cloak Enhancement" and "Exclusive SuperWeapon Sidebar," along with visual and AI improvements.
src/Ext/Rules/Body.cpp Added properties for cloak and decloak animations in RulesExt::ExtData.
src/Ext/Rules/Body.h Introduced new member variables for cloak mechanics in RulesExt.
src/Ext/SWType/Body.cpp Added properties related to super weapon settings and messages in SWTypeExt::ExtData.
src/Ext/SWType/Body.h Expanded SWTypeExt class with new variables and a method for message handling.
src/Ext/Sidebar/TacticalButtonClass.cpp Implemented tactical button management for super weapons within the user interface.
src/Ext/Sidebar/TacticalButtonClass.h Defined TacticalButtonClass with methods for button management and interaction.
src/Ext/Techno/Hooks.cpp Added hooks for animation handling during cloaking and parasite management.
src/Ext/TechnoType/Body.cpp Introduced new properties for cloak animations in TechnoTypeExt::ExtData.
src/Ext/TechnoType/Body.h Enhanced TechnoTypeExt with new nullable fields for animations.
src/Misc/PhobosToolTip.cpp Removed inline specifier from GetBuffer method in PhobosToolTip.
src/Misc/PhobosToolTip.h Modified GetBuffer declaration by removing inline.
src/Phobos.INI.cpp Added new UI settings for ExclusiveSuperWeaponSidebar in the Phobos::UI namespace.
src/Phobos.h Introduced static members for ExclusiveSuperWeaponSidebar in the Phobos class.
src/Utilities/AresAddressTable.cpp Added new function mappings for Ares function offsets.
src/Utilities/AresFunctions.h Introduced SuperWeaponTypeClass with methods for checking target constraints and retrieving mappings.

Sequence Diagram(s)

sequenceDiagram
    participant Player
    participant UI
    participant TacticalButtonClass
    participant SuperWeapon
    participant RulesExt

    Player->>UI: Interacts with Tactical Button
    UI->>TacticalButtonClass: Button Action Triggered
    TacticalButtonClass->>SuperWeapon: Launch Super Weapon
    SuperWeapon->>RulesExt: Execute Action
    RulesExt-->>SuperWeapon: Return Result
    SuperWeapon-->>TacticalButtonClass: Update Button State
    TacticalButtonClass-->>UI: Refresh UI
    UI-->>Player: Display Updated State

🐇 In the garden where bunnies play,
New features bloom in a bright array.
Cloaks and buttons, oh what a sight,
Super weapons ready, all set for flight!
With every hop, the game is more fun,
Thanks to the changes, let’s play and run! 🌼✨


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 - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: -- `I pushed a fix in commit , 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 generate interesting stats about this repository and render them as a table.` -- `@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 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](https://docs.coderabbit.ai/guides/configure-coderabbit) 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](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.