From 9e754881e5dfd4dd8ca31e550ddaf5e3751faa6d Mon Sep 17 00:00:00 2001 From: Condorra Date: Wed, 22 Feb 2023 22:27:29 +1100 Subject: [PATCH] Implement Healthtech Melbs to sell trauma kits etc... --- .../src/static_content/possession_type.rs | 9 +++++- .../src/static_content/room/melbs.rs | 31 +++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/blastmud_game/src/static_content/possession_type.rs b/blastmud_game/src/static_content/possession_type.rs index 02033884..9c1f2b1a 100644 --- a/blastmud_game/src/static_content/possession_type.rs +++ b/blastmud_game/src/static_content/possession_type.rs @@ -108,6 +108,7 @@ pub enum PossessionType { Fangs, // Default weapon for certain animals // Real possessions from here on: AntennaWhip, + MediumTraumaKit, } impl Into for PossessionType { @@ -226,7 +227,13 @@ pub fn possession_data() -> &'static BTreeMap { ..Default::default() }), ..Default::default() - }) + }), + (MediumTraumaKit, PossessionData { + display: "medium trauma kit", + details: "A collection of bandages and and small gadgets that look like they could, in the right hands, make an unhealthy person healthy again. It looks like when brand new, it could be used 5 times.", + aliases: vec!("trauma"), + ..Default::default() + }), ).into_iter().collect() }) } diff --git a/blastmud_game/src/static_content/room/melbs.rs b/blastmud_game/src/static_content/room/melbs.rs index 7f629274..5f15bf8f 100644 --- a/blastmud_game/src/static_content/room/melbs.rs +++ b/blastmud_game/src/static_content/room/melbs.rs @@ -2491,10 +2491,41 @@ pub fn room_list() -> Vec { target: ExitTarget::UseGPS, exit_type: ExitType::Free }, + Exit { + direction: Direction::NORTH, + target: ExitTarget::UseGPS, + exit_type: ExitType::Free + }, ), should_caption: false, ..Default::default() }, + Room { + zone: "melbs", + secondary_zones: vec!(), + code: "melbs_healthtech", + name: "Healthtech", + short: ansi!("HT"), + description: "A store full of beeping gadgets locked in glass display cabinets, all of which seem to be focused around health and medicine. A tall male technician in a white lab coat stands behind a counter, his eyes following you hoping that you are going to buy something", + description_less_explicit: None, + grid_coords: GridCoords { x: 3, y: 2, z: 0 }, + exits: vec!( + Exit { + direction: Direction::SOUTH, + target: ExitTarget::UseGPS, + exit_type: ExitType::Free + }, + ), + stock_list: vec!( + RoomStock { + possession_type: PossessionType::MediumTraumaKit, + list_price: 80, + ..Default::default() + } + ), + should_caption: true, + ..Default::default() + }, Room { zone: "melbs", secondary_zones: vec!(),