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

Magic sound effects and AEA_NOISE #34310

Merged
merged 1 commit into from
Oct 6, 2019

Conversation

KorGgenT
Copy link
Member

Summary

SUMMARY: Features "adds a noise spell effect that only causes noise, and adds AEA_NOISE"

Purpose of change

part of the artifact project and #34142
this adds more optional functionality to spell::make_sound, to be able to change any of the inputs to sounds::sound(). this could allow for custom sound effects, both textual and actual sound. See MAGIC.md for documentation on new spell_type members and JSON usage.

Describe the solution

adds a new overload for make_sound() in order to be able to call the "noise" spell effect with a specific loudness. adds enum traits to sounds::sound_t in order to be able to read these enums from strings.
Additionally, I have decided that it's not worth trying to add the item's name into the message you see at this point, so i dropped that part of the effect.

@KorGgenT KorGgenT added [JSON] Changes (can be) made in JSON SDL: Tiles / Sound Tiles visual interface and sounds. [C++] Changes (can be) made in C++. Previously named `Code` Artifacts Otherworldly items with special effects Mods: Magiclysm Anything to do with the Magiclysm mod labels Sep 28, 2019
@@ -217,6 +218,12 @@ void spell_type::load( JsonObject &jo, const std::string & )
mandatory( jo, was_loaded, "name", name );
mandatory( jo, was_loaded, "description", description );
optional( jo, was_loaded, "message", message, to_translation( "You cast %s!" ) );
optional( jo, was_loaded, "sound_description", sound_description,
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to update extract_json_strings.py to extract this string for translation.

@KorGgenT KorGgenT force-pushed the magic-sound-effects branch from 4ce3249 to 6c0c60f Compare October 5, 2019 14:19
@kevingranade kevingranade merged commit 6c0c60f into CleverRaven:master Oct 6, 2019
@KorGgenT KorGgenT deleted the magic-sound-effects branch October 6, 2019 18:14
@ZhilkinSerg ZhilkinSerg removed their assignment Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Artifacts Otherworldly items with special effects [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON Mods: Magiclysm Anything to do with the Magiclysm mod SDL: Tiles / Sound Tiles visual interface and sounds.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants