summaryrefslogtreecommitdiff
path: root/src/transactions.lisp
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-04-01 09:48:08 -0700
committercolin <colin@cicadas.surf>2023-04-01 09:48:08 -0700
commitcc3f850c514967ae2f9effef7e68e1d4965c6865 (patch)
tree6d0b52c3a65d53f247f4c8272667aca5a4e05bac /src/transactions.lisp
parent56a584ab1b13ff9510dd5145a778000169901a76 (diff)
Refactor to make cooperative hacking nicer
Diffstat (limited to 'src/transactions.lisp')
-rw-r--r--src/transactions.lisp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/transactions.lisp b/src/transactions.lisp
index 3372520..94ca83a 100644
--- a/src/transactions.lisp
+++ b/src/transactions.lisp
@@ -2,35 +2,6 @@
(in-package :dnd)
-(defun birth-from-the-goddess-loins (player name)
- (db:with-transaction ()
- (make-instance 'hero :name name :player player)))
-(defun new-sesh (player)
- (db:with-transaction () (make-instance 'session :player player)))
-(defun destroy-sesh (session)
- (db:with-transaction ()
- (db:delete-object session)))
-(defun register-player (nick)
- (db:with-transaction ()
- (make-instance 'player :nickname nick)))
-
-(defun create-adventure (player title &key (description "") seers)
- (db:with-transaction ()
- (make-instance 'adventure :title title :creator player
- :seers seers
- :description description)))
-
-(defun report-a-rumor (reporter adventure reported)
- (db:with-transaction ()
- (let ((rumor
- (make-instance 'rumor
- :reported reported
- :reporter reporter)))
- (push rumor (rumors adventure)))))
-
-(defun add-adventure-seer (player adventure)
- (db:with-transaction ()
- (push player (seers adventure))))