| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-09-09 21:24:26 +0200 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-09-09 21:24:26 +0200 | 
| commit | 027ab65faef27c68a93c7c886c2ddd02f2cb27fd (patch) | |
| tree | 307edd95a024c9d15fbc5698986a7d93fd6cfa21 /src/shared/battle-characters/BattleCharacters/Struct/Glyph.elm | |
| parent | 1eaca6c3fcd4b36b38a51d639341179ce3858eba (diff) | |
...
Diffstat (limited to 'src/shared/battle-characters/BattleCharacters/Struct/Glyph.elm')
| -rw-r--r-- | src/shared/battle-characters/BattleCharacters/Struct/Glyph.elm | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/src/shared/battle-characters/BattleCharacters/Struct/Glyph.elm b/src/shared/battle-characters/BattleCharacters/Struct/Glyph.elm index 9a86fb4..2a5054d 100644 --- a/src/shared/battle-characters/BattleCharacters/Struct/Glyph.elm +++ b/src/shared/battle-characters/BattleCharacters/Struct/Glyph.elm @@ -5,6 +5,7 @@ module BattleCharacters.Struct.Glyph exposing        find,        get_name,        get_id, +      get_family_id,        get_omnimods,        none,        default, @@ -27,6 +28,7 @@ type alias Type =     {        id : String,        name : String, +      family_id : String,        omnimods : Battle.Struct.Omnimods.Type     } @@ -48,6 +50,9 @@ find dict ref =  get_id : Type -> Ref  get_id g = g.id +get_family_id : Type -> Ref +get_family_id g = g.family_id +  get_name : Type -> String  get_name g = g.name @@ -60,6 +65,7 @@ decoder =        Type        |> (Json.Decode.Pipeline.required "id" Json.Decode.string)        |> (Json.Decode.Pipeline.required "nam" Json.Decode.string) +      |> (Json.Decode.Pipeline.required "fam" Json.Decode.string)        |> (Json.Decode.Pipeline.required "omni" Battle.Struct.Omnimods.decoder)     ) @@ -68,6 +74,7 @@ none =     {        id = "0",        name = "Empty", +      family_id = "0",        omnimods = (Battle.Struct.Omnimods.none)     } | 


