From 621377a02e85061ee13637f7d89806660318b88a Mon Sep 17 00:00:00 2001 From: Dael Date: Tue, 20 Oct 2020 20:34:37 +0800 Subject: [PATCH] initial implementation of cargo trading --- src/bloodsea.zil | 73 ++++++++++++++++++++++++++++++++++++++++++++++-- src/validator | 2 +- 2 files changed, 71 insertions(+), 4 deletions(-) diff --git a/src/bloodsea.zil b/src/bloodsea.zil index 38eb6f9..d83be76 100644 --- a/src/bloodsea.zil +++ b/src/bloodsea.zil @@ -2923,7 +2923,7 @@ )> > - )> > ,RESET-CARGO> )>> + > )> + )> + > + > + .CONTAINER> + + > + )> + > + + + + + + + )(ELSE + + )> + + + + + + CR> + > + + + + + + > + >>> + + )> + > + + + )(ELSE + > + .CONTAINER> + ,P?QUANTITY>> + + + ,P?QUANTITY .QUANTITY> + + )(ELSE + > + ,P?QUANTITY 1> + + )> + + )(ELSE + + )> + )> + > + )> + > + )(ELSE + + )>> + @@ -15362,9 +15430,8 @@ back with reinforcements soon.\"||You agree."> (CONTINUE STORY264) (FLAGS LIGHTBIT)> -; "TO-DO: Implement Cargo Trading" > + ,CARGO 2>> diff --git a/src/validator b/src/validator index 53e8b3d..4a34f74 100755 --- a/src/validator +++ b/src/validator @@ -1,6 +1,6 @@ #!/bin/bash grep -n '(STORY' bloodsea.zil | grep -v '(STORY TEXT' | grep -v '(STORY NONE)' | grep -v 'STORY-JUMP (STORY)' | grep -v '(STORY "' | grep -v '(STORY JUMP ' | grep -v '(STORY SHACK ' | grep -v '(STORY INDEX ' | grep -v 'SET-DESTINATION (STORY DESTINATION' | grep -v 'PROCESS-HOUSE (STORY ' | grep -v 'STORAGE-MONEY (STORY ' | grep -v 'STORAGE-POSSESSIONS (STORY ' | grep -v 'VISIT-STORAGE (STORY ' | grep -v 'PROCESS-COLLEGE (STORY COLLEGE' -grep -n '(CHOICE' bloodsea.zil | grep -v '(CHOICES CHOICES' | grep -v '(CHOICES NONE)' | grep -v '(CHOICES "AUX"' | grep -v '