summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2019-09-13 14:28:50 +0200
committernsensfel <SpamShield0@noot-noot.org>2019-09-13 14:28:50 +0200
commitb0eca141eb88866b09df80c199d8731b6d97ac8b (patch)
tree2480fcbcdf7f9540774b0ee0ecde199a531ee9a7 /src/roster-editor
parente0844c02544ade4b383e707151bda654d7b7af3d (diff)
More successful attempt at improving omnimods UI.
Diffstat (limited to 'src/roster-editor')
-rw-r--r--src/roster-editor/src/View/CharacterCard.elm55
1 files changed, 1 insertions, 54 deletions
diff --git a/src/roster-editor/src/View/CharacterCard.elm b/src/roster-editor/src/View/CharacterCard.elm
index e462de9..0dc8c4c 100644
--- a/src/roster-editor/src/View/CharacterCard.elm
+++ b/src/roster-editor/src/View/CharacterCard.elm
@@ -345,59 +345,6 @@ get_glyph_board_details has_no_invalid_glyphs board =
]
)
-get_relevant_atts : (
- Battle.Struct.Omnimods.Type ->
- Battle.Struct.Attributes.Type ->
- (Html.Html Struct.Event.Type)
- )
-get_relevant_atts omnimods atts =
- (Html.div
- [
- (Html.Attributes.class "character-card-atts"),
- (Html.Attributes.class "roster-editor-atts")
- ]
- [
- (
- let
- damage_multiplier =
- (Battle.Struct.Attributes.get_damage_multiplier atts)
- in
- (Html.div
- [
- (Html.Attributes.class "omnimod-attack-mods")
- ]
- (List.map
- (
- \(s, i) ->
- (get_mod_html
- (
- s,
- (ceiling ((toFloat i) * damage_multiplier))
- )
- )
- )
- (Battle.Struct.Omnimods.get_attack_mods omnimods)
- )
- )
- ),
- (Html.div
- [
- (Html.Attributes.class "omnimod-defense-mods")
- ]
- (List.map
- (get_mod_html)
- (Battle.Struct.Omnimods.get_defense_mods omnimods)
- )
- ),
- (Html.div
- [
- (Html.Attributes.class "character-card-actual-attributes")
- ]
- (Battle.View.Attribute.get_true_all_html atts)
- )
- ]
- )
-
--------------------------------------------------------------------------------
-- EXPORTED --------------------------------------------------------------------
--------------------------------------------------------------------------------
@@ -520,6 +467,6 @@ get_full_html current_tab char =
)
(BattleCharacters.Struct.Equipment.get_glyph_board equipment)
),
- (get_relevant_atts omnimods char_attributes)
+ (Battle.View.Omnimods.get_user_friendly_html omnimods)
]
)