Renamed to robinheghan/elm-warrior. It is published under that name, and new versions come out there.
Versions published as Skinney/elm-warrior still install under that name. 15 versions of 15 come from the new location (see their notes).
Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/robinheghan/elm-warrior.
What we checked: The repo moved to github.com/robinheghan/elm-warrior. Rebuilt with git archive from commit 9e50d37d422d of https://github.com/robinheghan/elm-warrior (zip prefix Skinney-elm-warrior-9e50d37/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 2f81154d6b58af675196ee7dfc6e5e5d297a5057.
The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.
Details · package.elm-lang.org's zip: https://github.com/Skinney/elm-warrior/zipball/3.1.2/
The player record contains all known state for playable, as well as non-playable characters in the game. You'll probably need the functions in this module to make decisions about your next turn.
This type allows us to seperate playable from non-playable characters. Villains are players which belong to a specific map, where they serve as obstacles.
The different actions which can be performed on a given turn.
Initializes a hero. You do not need to concern yourself with this function, as it will be called by the framework.
Initializes a villain. You do not need to concern yourself with this function, as it will be called by the framework.
Add an item to the players inventory. You do not need to concern yourself with this function, as the framework will use this as the result of a Pickup action.
Adds an action to the list of previous actions. Is called by the framework and can be safely ignored.
Change the current position of a player. This will be used by the framework to advance the state of the game. You do not need to concern yourself with this function.
This function will be called by the framework as a result of the Attack action, and can be safely ignored.
This function will be called by the framework as a result of the Heal action, and can be safely ignored.
Returns how much damage this player will do as the result of an attack. This takes the items in the players inventory into account.
Returns how many points this player will recover as the result of a heal action. Items in the players inventory will be taken into account.
Get the maximum health the player can have. The player usually starts with this amount of health at the start of a map.
Get a list of previous actions, and the player state before those actions occured. The list is in reverse order. Meaning that the previous action performed by the player is the first item. If the list is empty, this must be the first turn of the game.
This record contains the state of a given player. Playable or non-playable.