Something went wrong. Try again.
playing around with making a fusion calculator for smtv vengeance in gleam
Something went wrong. Try again.
Files
- Gleam 100%
README.md
smtvv_fusion #
This is a simple Gleam library I wrote for fun that calculates the outcome of binary fusion in the game Shin Megami Tensei V: Vengeance.
How binary fusion works in Shin Megami Tensei V: Vengeance #
Regular fusion #
- Determine the target race for the new demon, which is based on the race of the demons being fused. See the fusion chart. Fusion is impossible if the combination of the races being fused does not have an entry in the fusion chart.
- Take the mean of the two demons' base levels (their current level does not matter). This is the target level.
- If there are any demons of the target race above the target level, yield the lowest-level such demon. Otherwise, yield the highest-level demon of the target race.
Element fusion #
Element fusion involves fusing one of the demons of the Element race (Aeros, Erthys, Aquans, Flaemis) with another demon. When Element fusion is possible, it always yields a demon of the same race as the non-Element demon.
- Determine whether the fusion is upward or downward, which depends on the specific Element demon being used and the race of the other demon. For example, a Fairy fused with Aeros is downward, whereas a Fairy demon fused with Aquans is upward. See the fusion chart. Some races cannot be fused with elements; these will have no corresponding entry in the fusion chart.
- If the fusion is upward, yield the next-highest-level demon of the same race; if the demon being fused is the highest-level demon of its race, "wrap around" and yield the lowest-level demon of that race. If the fusion is downward, yield the next-lowest-level demon of the same race; if the demon being fused is the lowest-level demon if its race, fusion is impossible (do not wrap around to the top).