24 lines
834 B
Plaintext
24 lines
834 B
Plaintext
// SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
digraph item_status {
|
|
rankdir=LR;
|
|
node [shape=point]; q0;
|
|
node [shape=circle]; owned loaned borrowed inactive;
|
|
q0 -> inactive;
|
|
// s/\(.*\) -> \(.*\) \[label="\(.*\)"\];/('\1', '\3', '\2'),/
|
|
inactive -> owned [label="buy"];
|
|
inactive -> owned [label="recieve_gift"];
|
|
inactive -> owned [label="acquire"]; // generic, also used as fallback for older items
|
|
inactive -> borrowed [label="borrow"];
|
|
owned -> inactive [label="sell"];
|
|
owned -> inactive [label="gift"];
|
|
owned -> inactive [label="lose"];
|
|
owned -> inactive [label="use"];
|
|
owned -> inactive [label="dispose"];
|
|
owned -> loaned [label="loan"];
|
|
loaned -> owned [label="return_loaned"];
|
|
borrowed -> inactive [label="return_borrowed"];
|
|
}
|