From f51424c90dbce7191a31b6e675818c985f0f4539 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 31 Jul 2026 17:44:10 -0400 Subject: feat: casino framework and basic slot machine --- data/.admin_history.json | 1 + data/rooms/intro/2001.yaml | 30 ++++++++++++++++++++---------- 2 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 data/.admin_history.json (limited to 'data') diff --git a/data/.admin_history.json b/data/.admin_history.json new file mode 100644 index 0000000..e856da6 --- /dev/null +++ b/data/.admin_history.json @@ -0,0 +1 @@ +{"history":[{"time":"2026-07-31T13:48:03-04:00","description":"update room 2001","file_path":"data/rooms/intro/2001.yaml","old_content":"id: 2001\nname: Test Room\ncolor: \"\"\ndescription:\n - text: It's a test room\nexits:\n east:\n room: 1005\n south:\n room: 2006\n west:\n room: 1001\nobjects:\n - name: hidden guy\n hidden: true\n description:\n - text: YOU FOUND HIM\n - id: tree\nitem_spawns:\n - id: bronze_axe\n quantity: 1\n respawn_ticks: 1\n - id: pot_of_flour\n quantity: 1\n respawn_ticks: 1\n - id: bucket_of_water\n quantity: 1\n respawn_ticks: 1\nmobs:\n - id: man\non_enter: []\nhazard: \"\"\nblock_transport: false\ntriggers: []\ncasino_tables:\n - id: slots\n game: slots\n max_players: 8\n betting_ticks: 20\n min_bet: 1\n max_bet: 1000\n\n","new_content":"block_transport: false\ncasino_tables:\n - betting_ticks: 20\n game: slots\n id: slots\n max_bet: 1000\n max_players: 8\n min_bet: 1\ncolor: \"\"\ndescription:\n - text: It's a test room\nexits:\n east:\n room: 1005\n south:\n room: 2006\n west:\n room: 1001\nhazard: \"\"\nid: 2001\nitem_spawns:\n - id: bronze_axe\n quantity: 1\n respawn_ticks: 1\n - id: pot_of_flour\n quantity: 1\n respawn_ticks: 1\n - id: bucket_of_water\n quantity: 1\n respawn_ticks: 1\n - id: chips\n quantity: 1\n respawn_ticks: 0\nmobs:\n - id: man\nname: Test Room\nobjects:\n - description:\n - text: YOU FOUND HIM\n hidden: true\n name: hidden guy\n - id: tree\non_enter: []\ntriggers: []\n","is_delete":false,"is_create":false},{"time":"2026-07-31T13:48:06-04:00","description":"update room 2001","file_path":"data/rooms/intro/2001.yaml","old_content":"block_transport: false\ncasino_tables:\n - betting_ticks: 20\n game: slots\n id: slots\n max_bet: 1000\n max_players: 8\n min_bet: 1\ncolor: \"\"\ndescription:\n - text: It's a test room\nexits:\n east:\n room: 1005\n south:\n room: 2006\n west:\n room: 1001\nhazard: \"\"\nid: 2001\nitem_spawns:\n - id: bronze_axe\n quantity: 1\n respawn_ticks: 1\n - id: pot_of_flour\n quantity: 1\n respawn_ticks: 1\n - id: bucket_of_water\n quantity: 1\n respawn_ticks: 1\n - id: chips\n quantity: 1\n respawn_ticks: 0\nmobs:\n - id: man\nname: Test Room\nobjects:\n - description:\n - text: YOU FOUND HIM\n hidden: true\n name: hidden guy\n - id: tree\non_enter: []\ntriggers: []\n","new_content":"block_transport: false\ncasino_tables:\n - betting_ticks: 20\n game: slots\n id: slots\n max_bet: 1000\n max_players: 8\n min_bet: 1\ncolor: \"\"\ndescription:\n - text: It's a test room\nexits:\n east:\n room: 1005\n south:\n room: 2006\n west:\n room: 1001\nhazard: \"\"\nid: 2001\nitem_spawns:\n - id: bronze_axe\n quantity: 1\n respawn_ticks: 1\n - id: pot_of_flour\n quantity: 1\n respawn_ticks: 1\n - id: bucket_of_water\n quantity: 1\n respawn_ticks: 1\n - id: chips\n quantity: 5000\n respawn_ticks: 0\nmobs:\n - id: man\nname: Test Room\nobjects:\n - description:\n - text: YOU FOUND HIM\n hidden: true\n name: hidden guy\n - id: tree\non_enter: []\ntriggers: []\n","is_delete":false,"is_create":false},{"time":"2026-07-31T13:48:07-04:00","description":"update room 2001","file_path":"data/rooms/intro/2001.yaml","old_content":"block_transport: false\ncasino_tables:\n - betting_ticks: 20\n game: slots\n id: slots\n max_bet: 1000\n max_players: 8\n min_bet: 1\ncolor: \"\"\ndescription:\n - text: It's a test room\nexits:\n east:\n room: 1005\n south:\n room: 2006\n west:\n room: 1001\nhazard: \"\"\nid: 2001\nitem_spawns:\n - id: bronze_axe\n quantity: 1\n respawn_ticks: 1\n - id: pot_of_flour\n quantity: 1\n respawn_ticks: 1\n - id: bucket_of_water\n quantity: 1\n respawn_ticks: 1\n - id: chips\n quantity: 5000\n respawn_ticks: 0\nmobs:\n - id: man\nname: Test Room\nobjects:\n - description:\n - text: YOU FOUND HIM\n hidden: true\n name: hidden guy\n - id: tree\non_enter: []\ntriggers: []\n","new_content":"block_transport: false\ncasino_tables:\n - betting_ticks: 20\n game: slots\n id: slots\n max_bet: 1000\n max_players: 8\n min_bet: 1\ncolor: \"\"\ndescription:\n - text: It's a test room\nexits:\n east:\n room: 1005\n south:\n room: 2006\n west:\n room: 1001\nhazard: \"\"\nid: 2001\nitem_spawns:\n - id: bronze_axe\n quantity: 1\n respawn_ticks: 1\n - id: pot_of_flour\n quantity: 1\n respawn_ticks: 1\n - id: bucket_of_water\n quantity: 1\n respawn_ticks: 1\n - id: chips\n quantity: 5000\n respawn_ticks: 1\nmobs:\n - id: man\nname: Test Room\nobjects:\n - description:\n - text: YOU FOUND HIM\n hidden: true\n name: hidden guy\n - id: tree\non_enter: []\ntriggers: []\n","is_delete":false,"is_create":false}],"redo":null} \ No newline at end of file diff --git a/data/rooms/intro/2001.yaml b/data/rooms/intro/2001.yaml index 8f1db38..ed10efa 100644 --- a/data/rooms/intro/2001.yaml +++ b/data/rooms/intro/2001.yaml @@ -1,5 +1,11 @@ -id: 2001 -name: Test Room +block_transport: false +casino_machines: + - id: huff_puff_01 + game: slots + variant: huff_and_even_more_puff + min_bet: 1 + max_bet: 1000 + payout: 0.97 color: "" description: - text: It's a test room @@ -10,12 +16,8 @@ exits: room: 2006 west: room: 1001 -objects: - - name: hidden guy - hidden: true - description: - - text: YOU FOUND HIM - - id: tree +hazard: "" +id: 2001 item_spawns: - id: bronze_axe quantity: 1 @@ -26,9 +28,17 @@ item_spawns: - id: bucket_of_water quantity: 1 respawn_ticks: 1 + - id: chips + quantity: 5000 + respawn_ticks: 1 mobs: - id: man +name: Test Room +objects: + - description: + - text: YOU FOUND HIM + hidden: true + name: hidden guy + - id: tree on_enter: [] -hazard: "" -block_transport: false triggers: [] -- cgit v1.2.3