]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Action Upgrade System (#22277)
authorkeronshb <54602815+keronshb@users.noreply.github.com>
Fri, 15 Dec 2023 09:41:44 +0000 (04:41 -0500)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2023 09:41:44 +0000 (02:41 -0700)
commit2d692f47da462a40fa056e05a2698b1d7b756e91
tree9481542a73c5e044950c4a8869225dd37d575534
parent39cda517a5772bf6bf5b6d198f0b5ab17d9b3b2e
Action Upgrade System (#22277)

* Adds uses before delay so actions can be used multiple times before cooldown

* adds methods to get remaining charges, to set uses before delay, and to set use delay

* adds method to change action name

* moves set usedelay

* action upgrade ECS

* adds method to reset remaining uses

* adds upgrade events

* refactors action upgrade event and adds logic to parse it

* fix serialization issue

* adds level up draft method

* adds action commands and a command to upgrade an action

* more warning lines to help

* Gets action to upgrade properly

* Removes unneeded fields from the action upgrade component and now properly raises the level of the new action

* Cleans up dead code and comments

* Fixes punctuation in actions-commands and adds a TryUpgradeAction method.

* removes TODO comment

* robust fix

* removes RT

* readds RT

* update RT to 190

* removes change name method

* removes remaining uses & related fields and adds that functionality to charges

* Adds Charges to action tooltips that require it
14 files changed:
Content.Client/Actions/ActionsSystem.cs
Content.Client/Actions/UI/ActionAlertTooltip.cs
Content.Client/Stylesheets/StyleNano.cs
Content.Client/UserInterface/Systems/Actions/ActionUIController.cs
Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs
Content.Client/UserInterface/Systems/Actions/Controls/ActionTooltip.xaml
Content.Server/Commands/ActionCommands.cs [new file with mode: 0644]
Content.Shared/Actions/ActionUpgradeComponent.cs [new file with mode: 0644]
Content.Shared/Actions/ActionUpgradeSystem.cs [new file with mode: 0644]
Content.Shared/Actions/BaseActionComponent.cs
Content.Shared/Actions/Events/ActionUpgradeEvent.cs [new file with mode: 0644]
Content.Shared/Actions/SharedActionsSystem.cs
Resources/Locale/en-US/actions/actions/actions-commands.ftl [new file with mode: 0644]
Resources/Prototypes/Magic/projectile_spells.yml