summaryrefslogtreecommitdiff
path: root/model.lisp
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-12-26 15:22:04 -0800
committerColin Okay <colin@cicadas.surf>2022-12-26 15:22:04 -0800
commit79272ef4a0cf6e3f93333f239dd36159202fbbba (patch)
tree6a4d0b4434403f968c45af28235f089a73de6925 /model.lisp
parent7bbed3ba5c7fea74a8fd7edbfb2b5f3205e4b590 (diff)
Add: a basic json endpoint to return hall-of-fame data
Diffstat (limited to 'model.lisp')
-rw-r--r--model.lisp16
1 files changed, 12 insertions, 4 deletions
diff --git a/model.lisp b/model.lisp
index 318aa26..df20bc0 100644
--- a/model.lisp
+++ b/model.lisp
@@ -1,6 +1,6 @@
;;;; model.lisp -- bknr.datastore class definitions for dnd
-ty
+
(in-package :dungeons-and-deadlines)
@@ -10,12 +10,21 @@ ty
(deftype character-class ()
`(member :hero))
+(defun hero-class (h)
+ "barGaryan")
+
+(defun hero-title (h)
+ "Scouse Chef")
+
+(defun renown (hero)
+ (experience hero))
+
(defclass has-uid (db:store-object)
((nuid :reader uid :initform (nuid)))
(:metaclass db:persistent-class))
(defclass can-equip (db:store-object)
- ((equipment-slots
+ ((equipment-table
:initform (make-hash-table))
(equipment-slot-names
:initform (list :holding)
@@ -40,8 +49,7 @@ ty
:type integer)
(chronicle
:accessor hero-chronicle
- :initform (list)
- :type (cons string))
+ :initform (list))
(pwhash
:accessor pwhash
:type string