Renaming before introducing characters and world map.
This commit is contained in:
parent
6bfb07dba9
commit
981712c32b
@ -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 ]
|
@ -0,0 +1,5 @@
|
|||||||
|
accessing
|
||||||
|
queryOracles
|
||||||
|
| currentRoll |
|
||||||
|
currentRoll := self roll.
|
||||||
|
^ self oracles detect: [ :each | (each at: 'dice') = currentRoll ] ifNone: [ ^ currentRoll ]
|
@ -12,6 +12,6 @@
|
|||||||
"oracles",
|
"oracles",
|
||||||
"wiki"
|
"wiki"
|
||||||
],
|
],
|
||||||
"name" : "Firelights",
|
"name" : "FirelightsGame",
|
||||||
"type" : "normal"
|
"type" : "normal"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user