diff --git a/RoloLudo.package/DicePool.class/README.md b/RoloLudo.package/DicePool.class/README.md new file mode 100644 index 0000000..e69de29 diff --git a/RoloLudo.package/DicePool.class/instance/dice.st b/RoloLudo.package/DicePool.class/instance/dice.st new file mode 100644 index 0000000..c0c6028 --- /dev/null +++ b/RoloLudo.package/DicePool.class/instance/dice.st @@ -0,0 +1,3 @@ +accessing +dice + ^ dice ifNil: [dice := Array with: (Die with: 6) with: (Die with: 6) ] \ No newline at end of file diff --git a/RoloLudo.package/DicePool.class/instance/roll.st b/RoloLudo.package/DicePool.class/instance/roll.st new file mode 100644 index 0000000..20b1a2f --- /dev/null +++ b/RoloLudo.package/DicePool.class/instance/roll.st @@ -0,0 +1,3 @@ +accessing +roll + ^ self dice collect: [:each | each roll ] \ No newline at end of file diff --git a/RoloLudo.package/DicePool.class/properties.json b/RoloLudo.package/DicePool.class/properties.json new file mode 100644 index 0000000..b27d4d3 --- /dev/null +++ b/RoloLudo.package/DicePool.class/properties.json @@ -0,0 +1,13 @@ +{ + "commentStamp" : "", + "super" : "Object", + "category" : "RoloLudo", + "classinstvars" : [ ], + "pools" : [ ], + "classvars" : [ ], + "instvars" : [ + "dice" + ], + "name" : "DicePool", + "type" : "normal" +} \ No newline at end of file diff --git a/RoloLudo.package/Die.class/README.md b/RoloLudo.package/Die.class/README.md new file mode 100644 index 0000000..e69de29 diff --git a/RoloLudo.package/Die.class/class/with..st b/RoloLudo.package/Die.class/class/with..st new file mode 100644 index 0000000..625e9af --- /dev/null +++ b/RoloLudo.package/Die.class/class/with..st @@ -0,0 +1,4 @@ +accessing +with: anInteger + ^ self new + faces: anInteger \ No newline at end of file diff --git a/RoloLudo.package/Die.class/instance/faces..st b/RoloLudo.package/Die.class/instance/faces..st new file mode 100644 index 0000000..bfadf9f --- /dev/null +++ b/RoloLudo.package/Die.class/instance/faces..st @@ -0,0 +1,3 @@ +accessing +faces: anInteger + faces := anInteger \ No newline at end of file diff --git a/RoloLudo.package/Die.class/instance/faces.st b/RoloLudo.package/Die.class/instance/faces.st new file mode 100644 index 0000000..cecdaf0 --- /dev/null +++ b/RoloLudo.package/Die.class/instance/faces.st @@ -0,0 +1,3 @@ +accessing +faces + ^ faces \ No newline at end of file diff --git a/RoloLudo.package/Die.class/instance/roll.st b/RoloLudo.package/Die.class/instance/roll.st new file mode 100644 index 0000000..e5c8c24 --- /dev/null +++ b/RoloLudo.package/Die.class/instance/roll.st @@ -0,0 +1,3 @@ +accessing +roll + ^ self faces atRandom \ No newline at end of file diff --git a/RoloLudo.package/Die.class/properties.json b/RoloLudo.package/Die.class/properties.json new file mode 100644 index 0000000..12580b4 --- /dev/null +++ b/RoloLudo.package/Die.class/properties.json @@ -0,0 +1,13 @@ +{ + "commentStamp" : "", + "super" : "Object", + "category" : "RoloLudo", + "classinstvars" : [ ], + "pools" : [ ], + "classvars" : [ ], + "instvars" : [ + "faces" + ], + "name" : "Die", + "type" : "normal" +} \ No newline at end of file diff --git a/RoloLudo.package/Firelights.class/instance/dice.st b/RoloLudo.package/Firelights.class/instance/dice.st new file mode 100644 index 0000000..bdb0c25 --- /dev/null +++ b/RoloLudo.package/Firelights.class/instance/dice.st @@ -0,0 +1,3 @@ +accessing +dice + ^ dice ifNil: [ dice := DicePool new ] \ No newline at end of file diff --git a/RoloLudo.package/Firelights.class/instance/loadOraclesFromRepository.st b/RoloLudo.package/Firelights.class/instance/loadOraclesFromRepository.st new file mode 100644 index 0000000..d975979 --- /dev/null +++ b/RoloLudo.package/Firelights.class/instance/loadOraclesFromRepository.st @@ -0,0 +1,3 @@ +accessing +loadOraclesFromRepository + ^ STON fromString: 'https://mutabit.com/repos.fossil/502Lab/raw/f0c299?at=oracles.ston' asUrl retrieveContents utf8Decoded \ No newline at end of file diff --git a/RoloLudo.package/Firelights.class/instance/oracles.st b/RoloLudo.package/Firelights.class/instance/oracles.st index 489031c..b25d5c6 100644 --- a/RoloLudo.package/Firelights.class/instance/oracles.st +++ b/RoloLudo.package/Firelights.class/instance/oracles.st @@ -1,3 +1,3 @@ accessing oracles - ^ oracles ifNil: [ oracles := self loadOraclesFromWikiTemplate] \ No newline at end of file + ^ oracles ifNil: [ oracles := self loadOraclesFromRepository] \ No newline at end of file diff --git a/RoloLudo.package/Firelights.class/instance/roll.st b/RoloLudo.package/Firelights.class/instance/roll.st new file mode 100644 index 0000000..ed7e884 --- /dev/null +++ b/RoloLudo.package/Firelights.class/instance/roll.st @@ -0,0 +1,3 @@ +accessing +roll + ^ self dice roll \ No newline at end of file