Renaming before introducing characters and world map.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2023-12-06 07:41:39 -05:00
parent 6bfb07dba9
commit 981712c32b
12 changed files with 11 additions and 4 deletions

View File

@ -1,12 +1,14 @@
accessing accessing
uiDiceFor: aView uiDiceFor: aView
<gtView> <gtView>
| response currentRoll | | response currentRoll dicePool |
response := '' writeStream. response := '' writeStream.
currentRoll := self roll. currentRoll := self roll.
dicePool := self dice collect: [:each | each faces ].
response response
nextPutAll: 'Rolls: ', currentRoll printString; cr; nextPutAll: 'Dice: ', dicePool printString ; cr;
nextPutAll: 'Sums: ', currentRoll sum asString. nextPutAll: 'Roll: ', currentRoll printString; cr;
nextPutAll: 'Sum: ', currentRoll sum asString.
^ aView text ^ aView text
title: 'Dice'; title: 'Dice';
text: [ response contents ] text: [ response contents ]

View File

@ -0,0 +1,5 @@
accessing
queryOracles
| currentRoll |
currentRoll := self roll.
^ self oracles detect: [ :each | (each at: 'dice') = currentRoll ] ifNone: [ ^ currentRoll ]

View File

@ -12,6 +12,6 @@
"oracles", "oracles",
"wiki" "wiki"
], ],
"name" : "Firelights", "name" : "FirelightsGame",
"type" : "normal" "type" : "normal"
} }