future_butcher_engine v0.1.0 FutureButcherEngine.Player View Source

Player module handles buying/selling cuts, weapons; debt; muggings

Link to this section Summary

Functions

.accrue_debt/2: player, turns

.buy_cut/4: player, cut name, cut amount, cut cost

.buy_pack/3: player, space of new pack, cost of new pack

.buy_weapon/3: player, weapon name, weapon cost

.new/1: player name

.pay_debt/1: player

.replace_weapon/4: player, new weapon name, new weapon cost, current weapon value

Link to this section Functions

Link to this function accrue_debt(player, turns) View Source

.accrue_debt/2: player, turns

Link to this function adjust_funds(player, atom, amount) View Source
Link to this function buy_cut(player, cut, amount, cost) View Source

.buy_cut/4: player, cut name, cut amount, cut cost

Link to this function buy_pack(player, new_space, cost) View Source

.buy_pack/3: player, space of new pack, cost of new pack

Link to this function buy_weapon(player, weapon, cost) View Source

.buy_weapon/3: player, weapon name, weapon cost

.new/1: player name

.pay_debt/1: player

Link to this function replace_weapon(player, weapon, cost, value) View Source

.replace_weapon/4: player, new weapon name, new weapon cost, current weapon value

Link to this function sell_cut(player, cut, amount, profit) View Source