From 5312e322f05e0f5f5d22fc4f058712a8a06b1e14 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Wed, 20 Dec 2023 19:06:51 -0500 Subject: [PATCH] Firelights: inventory, relics and starting vehicle implemented. --- README.md | 16 +++++++++------- .../instance/inventory.st | 6 ++++++ .../FirelightsCharacter.class/instance/relics.st | 3 +++ .../instance/vehicle.st | 4 ++++ .../FirelightsCharacter.class/properties.json | 2 +- 5 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 RoloLudo.package/FirelightsCharacter.class/instance/inventory.st create mode 100644 RoloLudo.package/FirelightsCharacter.class/instance/relics.st create mode 100644 RoloLudo.package/FirelightsCharacter.class/instance/vehicle.st diff --git a/README.md b/README.md index a95f3fb..6d3b941 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # RoloLudo -Utilities for table top role playing, starting with [Ironsworn](https://www.ironswornrpg.com/) and -[Starforged](https://www.ironswornrpg.com/product-ironsworn-starforged). +Utilities for table top role playing, starting with [Ironsworn](https://www.ironswornrpg.com/), +[Starforged](https://www.ironswornrpg.com/product-ironsworn-starforged) +and [Firelights](https://firelights.farirpgs.com/). To install it on Pharo/GToolkit first install [ExoRepo](https://code.tupale.co/Offray/ExoRepo) and then run from a Playground: @@ -12,12 +13,13 @@ and then run from a Playground: load. ``` -The first utilities connect JSON oracles with the [502Lab wiki](https://mutabit.com/repos.fossil/502Lab/uv/wiki/502Lab.html#) to facilitate translations. In the future it is expected to incorporate different utilities to make the game experience more fluid and minimalistic: +The first utilities connect JSON oracles with the [502Lab wiki](https://mutabit.com/repos.fossil/502Lab/uv/wiki/502Lab.html#) to facilitate translations. +In the future it is expected to incorporate different utilities to make the game experience more fluid and minimalistic: - * Virtual dice. - * Querying of oracles and wiki. - * Bots connected to Telegram or other game channels. - * Querying and editing of character sheets. + * [x] Virtual dice. + * [x] Querying of oracles and wiki. + * [ ] Bots connected to Telegram or other game channels. + * [ ] Querying and editing of character sheets. **References**: diff --git a/RoloLudo.package/FirelightsCharacter.class/instance/inventory.st b/RoloLudo.package/FirelightsCharacter.class/instance/inventory.st new file mode 100644 index 0000000..139e0c7 --- /dev/null +++ b/RoloLudo.package/FirelightsCharacter.class/instance/inventory.st @@ -0,0 +1,6 @@ +accessing +inventory + ^ inventory ifNil: [ + inventory := Dictionary new + at: 'vehicle' put: self vehicle; + yourself] \ No newline at end of file diff --git a/RoloLudo.package/FirelightsCharacter.class/instance/relics.st b/RoloLudo.package/FirelightsCharacter.class/instance/relics.st new file mode 100644 index 0000000..6945127 --- /dev/null +++ b/RoloLudo.package/FirelightsCharacter.class/instance/relics.st @@ -0,0 +1,3 @@ +accessing +relics + ^ self inventory at: 'relics' ifAbsentPut: [ nil ] \ No newline at end of file diff --git a/RoloLudo.package/FirelightsCharacter.class/instance/vehicle.st b/RoloLudo.package/FirelightsCharacter.class/instance/vehicle.st new file mode 100644 index 0000000..cc20a28 --- /dev/null +++ b/RoloLudo.package/FirelightsCharacter.class/instance/vehicle.st @@ -0,0 +1,4 @@ +accessing +vehicle + "This should be replaced y a Vehicle inventory item, with fatigue status." + ^ 'criocápsula móvil' \ No newline at end of file diff --git a/RoloLudo.package/FirelightsCharacter.class/properties.json b/RoloLudo.package/FirelightsCharacter.class/properties.json index 1e9866f..824d31f 100644 --- a/RoloLudo.package/FirelightsCharacter.class/properties.json +++ b/RoloLudo.package/FirelightsCharacter.class/properties.json @@ -8,7 +8,7 @@ "instvars" : [ "name", "pronouns", - "relics", + "inventory", "approaches" ], "name" : "FirelightsCharacter",