Current section

Files

Jump to
shadowdark_tables lib deities.ex
Raw

lib/deities.ex

defmodule ShadowdarkTables.Deities do
@moduledoc "The dieties that exist in the world of shadowdark"
use ShadowdarkTables.SimpleTable
defmodule Neutral do
@moduledoc "Neutral deities can be worshipped by anyone"
use ShadowdarkTables.SimpleTable
def data, do: ["Gede", "Ord"]
end
defmodule Lawful do
@moduledoc "lawful deities can be worshipped by lawful and neutral characters"
use ShadowdarkTables.SimpleTable
def data, do: ["Saint Terragnis", "Madeera the Covenant"]
end
defmodule Chaotic do
@moduledoc "chaotic deities can be worshipped by chaotic and neutral characters"
use ShadowdarkTables.SimpleTable
def data, do: ["Memnon", "Shune the Vile", "Ramlaat"]
end
alias __MODULE__.{Lawful, Neutral, Chaotic}
def data do
Lawful.data() ++ Neutral.data() ++ Chaotic.data()
end
end