Mineracoustics - Gemstone Music Theory

Mineracoustics - Gemstone Music Theory

An overly complicated overhaul of gemstone ring mechanics based on real Music Theory. Forge your very own Infinity Band and snap your enemies to dust!

[size=6][font=bebas_neuebook]What this is[/font][/size]

This mod replaces the boring and overpowered vanilla Iridium Band with a more interesting alternative based on real Music Theory and somewhat resembling the MCU Infinity Gauntlet. It was born initially to fix the "supremacy" of the Iridium Band, which very quickly made all other rings redundant, which in turn also pigeon-holes all players into the same flat-damage build. I wanted to create a system that promoted build diversity, and it hit me when I noticed that the Iridium Band is clearly depicted with 4 gemstones.

The new system is complex, but I've tried my best to make the description below easy to understand while also being educational. Math lovers, theorycrafters and musicians will find this system appealing. But even if you are not any of these things, my hope is that this new mechanic will encourage build experimentation, provide some much-needed build variety, and also teach some basic Music Theory.

[b]If you don't want to read the long description that follows, click here for TL;DR:[/b]
[spoiler]
[b]Quick How-To:[/b]
[list=1]
[][b]Craft an Infinity Band:[/b]
[list]
[
]Make an Iridium Band, which starts with no effects.[/]
[
]Infuse it with a Galaxy Soul at the Ginger Island Forge (still no effects, yet).[/]
[/list][/
]
[][b]Attach gemstones:[/b]
[list]
[
]Fuse with up to 4 gemstone rings by combining at the Forge.[/]
[
]Use the same gemstone for stronger single-stat bonuses, or mix gemstones for Resonances (bonuses based on combinations).[/]
[
]Resonances can give some light and magnetism (but less than Glow Ring and Magnet Ring).[/]
[/list][/
]
[][b]Limitations:[/b]
[list]
[
]Cannot combine with non-gemstone rings. You must balance power vs. utility and customize your build for different scenarios.[/]
[/list][/
]
[/list][b]Understanding Resonances:[/b]
[list]
[]Combine gemstones to create [b]Intervals[/b] and [b]Chords[/b] for bonus effects:
[list]
[
][b]Monad:[/b] 1 gemstone type = max single-stat boost.[/]
[
][b]Dyad:[/b] 2 gemstone types = balanced boost spread between two stats.[/]
[
][b]Tetrad:[/b] 4 gemstone types = highest resonance, but bonuses are spread-out between four stats.[/]
[/list][/
]
[/list][b]Pro Tip:[/b] Weapons forged with gemstones can resonate with an Infinity Band of the corresponding Chord for even more power.[/spoiler]

[size=6][font=bebas_neuebook]The Infinity Band[/font][/size]

Initially, a newly crafted Iridium Band will grant no effects at all; it's merely an ordinary band made of iridium. Only with access to the Forge will you be able to awaken its true form, by infusing it with a single Galaxy Soul, transforming it into an [b]Infinity Band[/b].

[center]
[img]https://raw.githubusercontent.com/daleao/sdv/main/Harmonics/resources/infinity_band.gif[/img][/center]

The Infinity Band likewise does nothing on its own, but it serves as a vessel for up to 4 gemstones of your choice. To add a gemstone to the Infinity Band, you must fuse it with a corresponding gemstone ring at the Forge. The same type of gemstone can be added more than once, compounding the effect. Alternatively, combining different gemstones may lead to powerful [b]resonances[/b] (see below).

The Infinity Band cannot be combined with any non-gemstone ring. In most cases, this means that players will now be forced to choose between power and utility, and to strategically carry different types of rings for different situations.


[size=6][font=bebas_neuebook]Garnet & Gemstone Resonance Theory[/font][/size]

Compensating for the removal of the vanilla Acrobat profession when using [url=https://www.nexusmods.com/stardewvalley/mods/24355]Walk Of Life[/url], this mod introduces a seventh gemstone, the [url=https://finalfantasy.fandom.com/wiki/Garnet_Til_Alexandros_XVII]Garnet[/url], which can be mined upwards of Mine level 80. Socketed to a ring or a weapon, it will grant 10% cooldown reduction to special moves.

With the addition of Garnet, the seven gemstones together form a [url=https://en.wikipedia.org/wiki/Diatonic_scale]Diatonic Scale[/url], with each gemstone functioning as a musical note:

[center]
[img]https://raw.githubusercontent.com/daleao/sdv/main/Harmonics/resources/diatonic.png[/img][/center]

[center]
[size=2][i]The Diatonic Gemstone Scale. The dashed lines show examples of Tertian Tetrad chords rooted in Ruby (red), Aquamarine (blue) and Emerald (green).[/i][/size][/center]

Beginning at the top, the scale progresses clockwise and is cyclic; i.e., after [b][color=#e13939]Rb[/color][/b] comes [b][color=#2390aa]Aq[/color][/b], [b][color=#6f3cc4]Am[/color][/b], and so on until [b][color=#dc8f08]Tp[/color][/b], before again repeating [b][color=#e13939]Rb[/color][/b].

[size=5][font=bebas_neuebook]Intervals[/font][/size]

Like strings in a guitar, each gemstone has a characteristic vibration. When two gemstones are placed side-by-side, these vibrations overlap, causing [url=https://en.wikipedia.org/wiki/Wave_interference]interference[/url] patterns that can be constructive or destructive. In other words, certain gemstone pairs may amplify each other's vibrations, while others may instead dampen each other, which is reflected in their respective stat buffs.

A pair of gemstones forms an [url=https://en.wikipedia.org/wiki/Interval_(music)]Interval[/url]. As the name implies, this is simply the distance between the two gemstones in the Diatonic Scale. A distance of 1 is known as a [b]Second[/b] interval (e.g., [b][color=#e13939]Rb[/color][/b]->[b][color=#2390aa]Aq[/color][/b]), a distance of 2 is known as a [b]Third[/b] interval (e.g., [b][color=#2390aa]Aq[/color][/b]->[b][color=#981d2d]Ga[/color][/b]), and so on. One full rotation of the circle is called an [url=https://en.wikipedia.org/wiki/Octave]Octave[/url], or [url=https://en.wikipedia.org/wiki/Unison]Unison[/url] (an interval of zero), denoting the interval between a gemstone and itself.

Notice that, because the scale is cyclic, intervals always come in pairs; for instance, the [b]Sixth[/b] interval [b][color=#e13939]Rb[/color][/b]->[b][color=#759663]Jd[/color][/b] is always accompanied by the [b]Third[/b] interval [b][color=#759663]Jd[/color][/b]->[b][color=#e13939]Rb[/color][/b]. Likewise for any [b]Second[/b] and [b]Seventh[/b], and every [b]Fourth[/b] and [b]Fifth[/b]. These intervals are complementary, and effectively equivalent. You can obtain one by simply counting backwards from the other (i.e., [b][color=#e13939]Rb[/color][/b]->[b][color=#759663]Jd[/color][/b] is a [b]Sixth[/b], but written backwards [b][color=#759663]Jd[/color][/b]<-[b][color=#e13939]Rb[/color][/b] it becomes a [b]Third[/b].

As a rule of thumb, stones that are positioned farthest from each other in the scale will resonate more strongly, while those positioned really close to each other may dissonate. All complementary intervals generate the same resonance, with the exception of the Fifth and Fourth (this is due to some over-simplifications from real-life Music Theory). Gemstones do not resonate with themselves.

In the list below, the [b]percentage values represent the boost to the first gemstone's stats[/b]:
[list]
[][b]Second:[/b] [color=#e06666]-12.5%[/color] (Ex: [b][color=#e13939]Rb[/color][/b]->[b][color=#2390aa]Aq[/color][/b] [b][color=#6f3cc4]Am[/color][/b]->[b][color=#981d2d]Ga[/color][/b] [b][color=#981d2d]Ga[/color][/b]->[b][color=#048036]Em[/color][/b])[/]
[][b]Third:[/b] [color=#b6d7a8]16.6%[/color] (Ex: [b][color=#e13939]Rb[/color][/b]->[b][color=#6f3cc4]Am[/color][/b] [b][color=#6f3cc4]Am[/color][/b]->[b][color=#048036]Em[/color][/b] [b][color=#981d2d]Ga[/color][/b]->[b][color=#759663]Jd[/color][/b])[/]
[][b]Fourth:[/b] [color=#93c47d]33.3%[/color] (Ex: [b][color=#e13939]Rb[/color][/b]->[b][color=#981d2d]Ga[/color][/b] [b][color=#6f3cc4]Am[/color][/b]->[b][color=#759663]Jd[/color][/b] [b][color=#981d2d]Ga[/color][/b]->[b][color=#dc8f08]Tp[/color][/b])[/]
[][b]Fifth:[/b] [color=#6aa84f]50%[/color] (Ex: [b][color=#e13939]Rb[/color][/b]->[b][color=#048036]Em[/color][/b] [b][color=#6f3cc4]Am[/color][/b]->[b][color=#dc8f08]Tp[/color][/b] [b][color=#981d2d]Ga[/color][/b]->[b][color=#e13939]Rb[/color][/b])[/]
[][b]Sixth:[/b] [color=#b6d7a8]16.6%[/color] (Ex: [b][color=#e13939]Rb[/color][/b]->[b][color=#759663]Jd[/color][/b] [b][color=#6f3cc4]Am[/color][/b]->[b][color=#e13939]Rb[/color][/b] [b][color=#981d2d]Ga[/color][/b]->[b][color=#2390aa]Aq[/color][/b])[/]
[][b]Seventh:[/b] [color=#e06666]-12.5%[/color] (Ex: [b][color=#e13939]Rb[/color][/b]->[b][color=#dc8f08]Tp[/color][/b] [b][color=#6f3cc4]Am[/color][/b]->[color=#2390aa]Aq[/color] [b][color=#981d2d]Ga[/color][/b]->[b][color=#6f3cc4]Am[/color][/b])[/]
[
][b]Octave:[/b] 0 (Ex: [b][color=#e13939]Rb[/color][/b]->[b][color=#e13939]Rb[/color][/b] [b][color=#6f3cc4]Am[/color][/b]->[b][color=#6f3cc4]Am[/color][/b] [b][color=#981d2d]Ga[/color][/b]->[b][color=#981d2d]Ga[/color][/b])[/]
[/list]
For instance, in the Fifth interval [b][color=#e13939]Rb[/color][/b]->[b][color=#048036]Em[/color][/b], [b][color=#e13939]Rb[/color][/b] will receive a 50% boost, and [b][color=#048036]Em[/color][/b] will receive a 33.3% boost (from the complementary Fourth interval [b][color=#048036]Em[/color][/b]->[b][color=#e13939]Rb[/color][/b]). In the Third interval [b][color=#981d2d]Ga[/color][/b]->[b][color=#759663]Jd[/color][/b], [b][color=#981d2d]Ga[/color][/b] will receive a 16.6% boost, and [b][color=#759663]Jd[/color][/b] will also receive a 16.6% boost (from the complementary Sixth [b][color=#759663]Jd[/color][/b]->[b][color=#981d2d]Ga[/color][/b]). It should be clear that the [b]Fifth[/b] is the strongest-resonating interval, for which reason it is known as the [url=https://en.wikipedia.org/wiki/Dominant_(music)]Dominant [/url]interval. The [b]Fourth[/b], its complement, is known as the [url=https://en.wikipedia.org/wiki/Subdominant]Sub-dominant[/url]. The asterisk next to the Seventh interval will be explained below.

[size=5][font=bebas_neuebook]Chords[/font][/size]

When multiple gemstones are placed together, the complex superposition of resonances that results from all possible interval permutations is called a [url=https://en.wikipedia.org/wiki/Chord_(music)]Chord[/url]. Gemstones can only interact in very close proximity, which means that chords may only be formed by up to 4 gemstones placed together in the same Infinity Band; the chords from different Infinity Bands do not interact.

The gemstone with the highest amplitude in a chord becomes the [b][url=https://en.wikipedia.org/wiki/Tonic_(music)]Tonic[/url][/b], or [b]Root[/b]. This will determine the "flavor" of the chord. All chords with a prominent Root will emit light of a corresponding color and Amplitude.

Chords have also an associated [b]Richness[/b], which measures how "interesting" it sounds. A higher richness is achieved by more complex chords (i.e., avoiding repeated gemstones). Some sufficiently rich chords can also exhibit [b]magnetism[/b].

In case it wasn't clear, [b]the order in which gemstones are placed in the ring does not matter.[/b]

[size=4][font=bebas_neuebook]Monad Chords[/font][/size]

A 1-note chord is called a [b][url=https://en.wikipedia.org/wiki/Monad_(music)]Monad[/url][/b]. A Monad is the simplest possible chord; it is made by simply repeating the same gemstone up to 4 times. Because it only contains Unisons, this chord offers no resonances and zero richness. As a result, it does not emit light, but achieves the highest single-stat total of any chord. The Ruby Monad is shown below.

[size=4][font=bebas_neuebook]Dyad Chords[/font][/size]

A 2-note chord is called a [url=https://en.wikipedia.org/wiki/Dyad_(music)]Dyad[/url]. A Dyad always contains exactly 2 complementary intervals. Given the table above, it should be clear that the best possible Dyad is the one made from the Dominant interval; i.e., a I->V configuration, such as [b][color=#e13939]Rb[/color][/b]->[b][color=#048036]Em[/color][/b]. This chord contains the intervals Fifth and Fourth (from the inverse, [b][color=#048036]Em[/color][/b]->[b][color=#e13939]Rb[/color][/b]), resulting in a +50% resonance to [b][color=#e13939]Rb[/color] [/b]and +33.3% to [b][color=#048036]Em[/color][/b].

A "double" I->V->I->V chord is called a [url=https://en.wikipedia.org/wiki/Power_chord]Power Chord[/url]; the simplest resonating chord (and a staple of rock music). The Ruby Power Chord is shown below. In total, it grants 30% damage (Ruby bonus) and 26.6% weapon speed (Emerald bonus). Why these values? Let's break it down:

Damage bonus:
[list]
[
]2 Ruby rings = 10% + 10%[/]
[
]Bonus from interval [color=#e13939][b]Rb[/b][/color]->[color=#048036][b]Em[/b][/color] = 10% * 50% = 5%[/]
[
]Total = 10% + 5% + 10% + 5% = 30%[/]
[/list]
Speed bonus:
[list]
[
]2 Emerald rings = 10% + 10%[/]
[
]Bonus from interval [color=#e13939][color=#048036][b]Em[/b][/color][/color]->[color=#e13939][b]Rb[/b][/color] = 10% * 33% = 3.33%[/]
[
]Total: 10% + 3.33% + 10% + 3.33% = 26.67%[/]
[/list]
[b]What if we removed one of the Ruby rings?[/b]
[spoiler]
Damage bonus:
[list]
[
]1 Ruby ring = 10%[/]
[
]Bonus from interval [color=#e13939][b]Rb[/b][/color]->[color=#048036][b]Em[/b][/color] = 10% * 50% = 5%[/]
[
]Because there are 2 Emerald rings for 1 Ruby ring, [b]each Emerald ring applies its full bonus twice[/b][/]
[
]Total = 10% + 5% (first Emerald ring) + 5% (second Emerald ring) = 20%[/]
[/list]
Speed bonus:
[list]
[
]2 Emerald rings = 10% + 10%[/]
[
]Bonus from interval [color=#e13939][b][color=#048036]Em[/color][/b][/color]->[color=#e13939][b]Rb[/b][/color] = 10% * 33% = 3.33%[/]
[
]Because there is only 1 Ruby ring for 2 Emerald rings, [b]the Ruby bonus is split in half for each Emerald ring[/b] [/]
[
]Total: 10% + 1.67% + 10% + 1.67% = 23.33%[/]
[/list]
I.e., if two or more intervals share just one gemstone (in this case, Ruby), then each repeated gemstone provides its full bonus, but the shared gemstone distributes its bonus between those intervals.[/spoiler]

Compared to the simple Monad, the Power Chord Dyad exchanges some of the primary stat for a substantial boost to the secondary stat.

On the other hand, a I->II configuration Dyad, like [b][color=#2390aa]Aq[/color][/b]->[b][color=#6f3cc4]Am[/color][/b], would contain the intervals Second and Seventh (from the inverse, [b][color=#6f3cc4]Am[/color][/b]->[b][color=#2390aa]Aq[/color][/b]), resulting in a strong dissonance, and a dampening of both gemstones (i.e., avoid this!).

[size=4][font=bebas_neuebook]Triad Chords[/font][/size]

A 3-note chord is called a [b]Triad[/b] or [url=https://en.wikipedia.org/wiki/Trichord]Trichord[/url]. A Triad always contains 6 intervals. There are many possible Triad combinations, but only one that avoids dissonances: the [url=https://en.wikipedia.org/wiki/Tertian]Tertian[/url]. A Tertian chord is formed by stacking sequential Third intervals. Notice that the Third of a Third is simply a Fifth (look at the wheel above to convince yourself of this). This means that a Tertian Triad is actually the configuration I->III->V.
The Ruby Tertian Triad is shown below.

Notice also that, due to the cyclic nature of the scale, the I->III->V configuration is equivalent to a "shifted" I->IV->VI. Take for instance the example of [b][color=#048036]Em[/color][/b]->[b][color=#e13939]Rb[/color][/b]->[b][color=#6f3cc4]Am[/color][/b], which is a I->IV->VI configuration; if we shift all notes one position to the left, then the chord becomes [b][color=#e13939]Rb[/color][/b]->[b][color=#6f3cc4]Am[/color][/b]->[b][color=#048036]Em[/color][/b], which is a I->III->V configuration. This shifting around of notes is known as [url=https://en.wikipedia.org/wiki/Inversion_(music)]inversion[/url]. This does not change the chord (remember, order does not matter), but allows us to see it from a different perspective.

[size=4][font=bebas_neuebook]Tetrad Chords[/font][/size]

Finally, a 4-note chord is called a [b]Tetrad[/b] or [url=https://en.wikipedia.org/wiki/Tetrachord]Tetrachord[/url]. A Tetrad always contains 12 intervals in total, which makes it impossible to find a configuration that avoids any dissonances. But this is okay; if we extend the Tertian Triad by adding another Third interval at the end, we achieve a [b]Tertian Tetrad[/b], or I->III->V->VII (the VII is the Third of the V). In this special case, the dissonant Seventh interval becomes resonant, adding +12.5% resonance instead of subtracting it. The Tertian Tetrad achieves the highest possible total resonance, though it forcefully spreads out those bonuses among 4 different stats. The Ruby Tertian Tetrad is shown below.

For the same reason described previously, the configuration I->II->IV->VI is equivalent to an [url=https://en.wikipedia.org/wiki/Inversion_(music)]inverted[/url] Tertian Tetrad.

[center]
[img]https://raw.githubusercontent.com/daleao/sdv/main/Harmonics/resources/monad_small.png[/img]    [img]https://raw.githubusercontent.com/daleao/sdv/main/Harmonics/resources/dyad_small.png[/img]  [img]https://raw.githubusercontent.com/daleao/sdv/main/Harmonics/resources/triad_small.png[/img]  [img]https://raw.githubusercontent.com/daleao/sdv/main/Harmonics/resources/tetrad_small.png[/img][/center]
[center][size=1][b]
From left to right: 1) The Ruby Monad; 2) The Ruby Power Chord; 3) The Ruby Tertian Triad; 4) The Ruby Tertian Tetrad[/b][/size][/center]

Of course, you are not limited to just the configurations shown above; the system will adapt to any configuration you attempt to use. Take these configurations as suggestions for those who simply desire a template.

There is no "best" configuration; the trade-off is always between maximizing a single or a few stats, versus maximizing the total amount of bonuses from resonances. As you increase a chord's complexity and richness, you essentially trade higher specific stats, for higher overall distributed stats. This system is intended to encourage experimentation and variety. It is up to each player to choose what best fits their desired build.

[size=5][font=bebas_neuebook]Weapon Resonance[/font][/size]

If the player's currently held weapon contains forged gemstones, they may also resonate with equipped Infinity Bands. But in this case, the resonance is far simpler; forged gemstones do not make up their own Chords, but will be amplified if they match the Root note of any equipped Chords. Intuitively, you can think of it as forged gemstones individually being too far apart to resonate with each other, but the emergent resonance from the Chords in your wielding hand is strong enough to vibrate through the blade.


[size=6][font=bebas_neuebook]Craftable Gemstone Rings[/font][/size]

This mod will optionally add Combat skill recipes for all Gemstone rings, requiring the corresponding gemstone and a type of metal bar:

[list]
[
][b]Amethyst:[/b] Copper Bar (Combat level 2)[/]
[
][b]Topaz:[/b] Copper Bar (Combat level 2)[/]
[
][b]Aquamarine:[/b] Iron Bar (Combat level 4)[/]
[
][b]Jade:[/b] Iron Bar (Combat level 4)[/]
[
][b]Ruby:[/b] Gold Bar (Combat level 6)[/]
[
][b]Emerald:[/b] - Gold Bar (Combat level 6)[/]
[
][b]Garnet:[/b] Gold Bar (Combat level 7)[/*]
[/list]
This is accompanied by visual changes to each ring to match the color of the required metal bar. The visual change is compatible with [url=https://www.nexusmods.com/stardewvalley/mods/8642]Better Rings[/url] and [url=https://www.nexusmods.com/stardewvalley/mods/10852]Vanilla Tweaks[/url]. Other visual overhauls of rings will be incompatible.

Note that crafting is the only way to obtain the Garnet Ring, and therefore disabling this option will make that ring unobtainable.


[size=6][font=bebas_neuebook]JADE REBALANCE[/font][/size]

The Jade Ring is useless in vanilla; it provides the exact same damage increase as the Ruby Ring, but only to critical strikes. So to make it viable we give it a small buff:

[b]Jade Ring: [/b][i]Critical strike power [s]+10%[/s] +50%.

[/i]With this, the Jade Ring becomes stronger than the Ruby Ring at around 20% critical strike chance.


[size=6][font=bebas_neuebook]Compatibility[/font][/size]

Compatible with [url=https://www.nexusmods.com/stardewvalley/mods/8642]Better Rings[/url] and [url=https://www.nexusmods.com/stardewvalley/mods/10852]Vanilla Tweaks[/url]. Incompatible with other ring re-texture mods.
Compatible with [url=https://www.nexusmods.com/stardewvalley/mods/3214]Wear More Rings.
[/url]

[size=6][font=bebas_neuebook]Credits & Special Thanks[/font][/size]

Compatibility textures are credited to the respective authors, who graciously provided permission to be included in this mod:
- [url=https://next.nexusmods.com/profile/bahbahrah?gameId=1303]bahbahrah [/url]for [url=https://www.nexusmods.com/stardewvalley/mods/8642]Better Rings[/url]
- [url=https://next.nexusmods.com/profile/mrtaiyou?gameId=1303]Taiyokun[/url] for [url=https://www.nexusmods.com/stardewvalley/mods/10852]Vanilla Tweaks
[/url]- [url=https://next.nexusmods.com/profile/freestew]freestew[/url] for cover image


[size=6][font=bebas_neuebook]DaLion Mod Series[/font][/size]

[b][url=https://www.nexusmods.com/stardewvalley/mods/24355]Walk of Life[/url][/b] - An extensive overhaul of profession trees and skill progression systems.
[url=https://www.nexusmods.com/stardewvalley/mods/24356]Aquarism[/url] - Make Fish Ponds actually useful. Created with the Aquarism profession in mind.
[url=https://www.nexusmods.com/stardewvalley/mods/24357]Serfdom[/url] - Realistic income and property taxation mechanics. Created with the Conservationist profession in mind.
[url=https://www.nexusmods.com/stardewvalley/mods/24832]Springmyst[/url] - Some actually interesting enchantments added to the game.
[b]Mineracoustics[/b] - Overly complex overhaul of gemstone ring mechanics based on real Music Theory.
[url=https://www.nexusmods.com/stardewvalley/mods/23048]Chargeable Resource Tools[/url] - Charge the Axe and Pickaxe to break debris within an area.
b[/b] [url=https://www.nexusmods.com/stardewvalley/mods/29830]Wildcat[/url] - Weapon combo framework, slick moves & other combat tweaks to improve the feel of combat.

[b][url=https://github.com/daleao/sdv/tree/main/Harmonics]Source code[/url][/b]