Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Conversation

@JohnFulpWillard
Copy link
Contributor

@JohnFulpWillard JohnFulpWillard commented Oct 9, 2023

Document the changes in your pull request

Antimagic checks are currently split between the old barely functional strung together shitcode of anti_magic_check, and the better version that currently doesn't work as good because the component doesn't take it into account of can_block_magic. This updates all instances of anti_magic_check to its proper can_block_magic use, and updates the component to only take that one into account now.

I also reverted the stealth nerf of Bibles against Revenants/Devils/Conversion, and added messages to the tinfoil hat letting you know when it gets used (since it has limited use).

This will be made even better with #20569 which adds bitflag support for the component, but that's not the point of the PR.

Ports
tgstation/tgstation#76616 (Mostly)
tgstation/tgstation#64124

Why is this good for the game?

Testing

just trust me bro

Spriting

Wiki Documentation

Changelog

🆑
bugfix: Bibles now protect against unholy stuff again.
bugfix: Antimagic protection now works properly and more consistently.
/:cl:

@Yogbot-13 Yogbot-13 added the Fix This fixes an issue. Please link issues in fix PRs label Oct 9, 2023
ADD_TRAIT(src, TRAIT_RECENTLY_BLOCKED_MAGIC, MAGIC_TRAIT)
addtimer(TRAIT_CALLBACK_REMOVE(src, TRAIT_RECENTLY_BLOCKED_MAGIC, MAGIC_TRAIT), 6 SECONDS)

/* //comment this in if you want antimagic to have a visible effect.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was part of the port but it wasn't a feature before so I didn't add it.
I can do it now if it's wanted, it essentially puts a glow around the character when they block magic (and plays a sound) for good feedback that the person is magic immune.

@Moltijoe Moltijoe merged commit bbc4247 into yogstation13:master Oct 15, 2023
Yogbot-13 added a commit that referenced this pull request Oct 15, 2023
@JohnFulpWillard JohnFulpWillard deleted the antimagic-begone branch October 23, 2023 10:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Fix This fixes an issue. Please link issues in fix PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants