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
uiDiceFor: aView
<gtView>
| response currentRoll |
| response currentRoll dicePool |
response := '' writeStream.
currentRoll := self roll.
dicePool := self dice collect: [:each | each faces ].
response
nextPutAll: 'Rolls: ', currentRoll printString; cr;
nextPutAll: 'Sums: ', currentRoll sum asString.
nextPutAll: 'Dice: ', dicePool printString ; cr;
nextPutAll: 'Roll: ', currentRoll printString; cr;
nextPutAll: 'Sum: ', currentRoll sum asString.
^ aView text
title: 'Dice';
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",
"wiki"
],
"name" : "Firelights",
"name" : "FirelightsGame",
"type" : "normal"
}