absurdor

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit a9f496a00f798e1774100ba2abbd0dd26c7b2675
parent 7e3ccb2fcb7e35ecd2b53bb3cdbe119574b87e55
Author: Juan F. Meleiro <juan@juanmeleiro.mat.br>
Date:   Mon, 29 Jul 2024 16:06:22 -0300

fix: Make naming of owner field the same everywhere

Diffstat:
Mabsurdor | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/absurdor b/absurdor @@ -169,7 +169,7 @@ if args.command == "report" then local players = {} local veblen = { cost = 1, - current = {owner = "Agora", payed = nil, when = 1721357958}, -- date proposal was enacted + current = {who = "Agora", payed = nil, when = 1721357958}, -- date proposal was enacted history = {} } @@ -204,7 +204,7 @@ if args.command == "report" then elseif e.what == "transfer" then die(e.payed < veblen.cost, string.format("Recorded transfer by %s used less spendies (%d) than the current Veblen cost (%s)", e.who, e.payed, veblen.cost)) table.insert(veblen.history, veblen.current) - veblen.current = {owner = e.who, payed = e.payed, cost = veblen.cost, when = e.when} + veblen.current = {who = e.who, payed = e.payed, cost = veblen.cost, when = e.when} veblen.cost = e.payed + 1 end end