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

Ninja invisibility rework (And consolidates /datum/action cooldowns to a single place) #11628

Conversation

PowerfulBacon
Copy link
Member

About The Pull Request

Reworks ninja invisibility

  • Upon de-activating starts a 30 second cooldown before it can be activated again.
  • Upon attacking or teleporting, invisbility will be disabled.

This made me desire better cooldown feedback on the action button, which lead to consolidating the action cooldowns.

Consolidates action cooldowns:

  • Action cooldowns were a right mess, spread between /datum/action, /datum/action/cooldown and /datum/proc_holder/spell
  • All actions can now be given a cooldown by calling set_cooldown on them.
  • Actions with a cooldown will now display the timer animation and show their time remaining

Why It's Good For The Game

  • Ninja shouldn't be able to combat while invisible, since it lets them dodge lasers.
  • Ninja stealth shouldn't be able to just be turned on and off during combat, so has a cooldown.
  • Actions with a cooldown should be well coded and standardised.

Testing Photographs and Procedure

Test ninja stealth disable on attack

image

image

Test ninja cooldown

image

Test Psychoza cooldown

image

image

Test dragon cooldown

image

Test spell recharging cooldown

image

image

Changelog

🆑
balance: Ninja invisibility now has a 30 second cooldown and disables when teleporting or attacking with the katana.
tweak: Standardises the code for action cooldowns.
/:cl:

@Tsar-Salat
Copy link
Contributor

Tsar-Salat commented Oct 4, 2024

Consolidates action cooldowns:

  • Action cooldowns were a right mess, spread between /datum/action, /datum/action/cooldown and /datum/proc_holder/spell
  • All actions can now be given a cooldown by calling set_cooldown on them.
  • Actions with a cooldown will now display the timer animation and show their time remaining

What is the point of this with #11527 ongoing?

Seems like a barrier to that PR.

I think the effort would be better spent trying to wrap that one up.

@PowerfulBacon
Copy link
Member Author

PowerfulBacon commented Oct 4, 2024

That PR is just porting TGs actions and doesn't achieve the cleaning up of actions that I'm doing here. That PR does handle spells which I don't here, but it also doesn't look like it's coming very soon.

@Szyszkrzyneczka
Copy link
Contributor

😭 I am working on it as fast as I can, that pr is really huge

@Rukofamicom
Copy link
Contributor

Rukofamicom commented Oct 4, 2024

Is the invisibility indefinite so long as specific actions aren't taken (and power lasts)?

I feel like this would actually be a good time to ask that ninja not be so reliant on draining APCs for charge, as a compensation of sorts for the nerfs. Ninjas run out of power fairly quickly and won't be able to easily access nearly as many APCs with a stealth nerf.

@SunShine214
Copy link
Contributor

Regarding ninja stealth: what is the point of it now? not only is it really easy to see (not actually stealthy) the beam and sound emitted from the dash ability gives any ninja away instantly. Now ninjas also leave a wake of emagged doors and broken windows, the only reason to use the stealth ability is either for flavor or as defense against the first shot.

@PowerfulBacon
Copy link
Member Author

This is currently blocked by the actions PR. I'll return to it later.

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.

5 participants