aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-09-14 00:39:29 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-09-14 00:39:29 +0200
commita60955411ba7eb69cbcf8643cc8820c490d030f0 (patch)
tree765f090bf0589deec5599c55a0d99eccc5afa5ce
parent2c59aa55a97f5086e44f8ad90b62432a59e742cf (diff)
downloadtacticians-client-a60955411ba7eb69cbcf8643cc8820c490d030f0.zip
tacticians-client-a60955411ba7eb69cbcf8643cc8820c490d030f0.tar.bz2
Shows omnimods with the slot's modifier applied.
-rw-r--r--src/roster-editor/src/View/GlyphManagement.elm6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/roster-editor/src/View/GlyphManagement.elm b/src/roster-editor/src/View/GlyphManagement.elm
index 6216b2c..a636516 100644
--- a/src/roster-editor/src/View/GlyphManagement.elm
+++ b/src/roster-editor/src/View/GlyphManagement.elm
@@ -11,6 +11,7 @@ import Html.Events
-- Battle ----------------------------------------------------------------------
import Battle.View.Omnimods
+import Battle.Struct.Omnimods
-- Battle Characters -----------------------------------------------------------
import BattleCharacters.Struct.Glyph
@@ -76,7 +77,10 @@ get_glyph_html invalid_family_ids modifier (index, glyph) =
)
),
(Battle.View.Omnimods.get_html
- (BattleCharacters.Struct.Glyph.get_omnimods glyph)
+ (Battle.Struct.Omnimods.scale
+ ((toFloat modifier) / 100.0)
+ (BattleCharacters.Struct.Glyph.get_omnimods glyph)
+ )
)
]
)