config stuff to config folder

This commit is contained in:
Llywelwyn 2023-08-23 01:31:02 +01:00
parent 705a6bb1fb
commit 424bf43ed5
12 changed files with 20 additions and 15 deletions

View file

@ -1,24 +0,0 @@
pub const NOCHARGES_WREST: &str = "You wrest one last charge from the worn-out wand.";
pub const NOCHARGES_DIDNOTHING: &str = "The wand does nothing.";
pub const IDENTIFY_ALL: &str = "You feel attuned to your belongings!";
pub const IDENTIFY_ALL_BLESSED: &str = "Divine favour reveals all";
pub const REMOVECURSE: &str = "You feel a weight lifted!";
pub const REMOVECURSE_BLESSED: &str = "You feel righteous";
pub const REMOVECURSE_BLESSED_FAILED: &str = "You feel righteous! But nothing happened.";
pub const DAMAGE_PLAYER_HIT: &str = "are hit!";
pub const DAMAGE_ITEM_HIT: &str = "is ruined!";
pub const DAMAGE_OTHER_HIT: &str = "is hit!";
pub const HEAL_PLAYER_HIT: &str = "recover some vigour.";
pub const HEAL_PLAYER_HIT_BLESSED: &str = "You feel great";
pub const HEAL_OTHER_HIT: &str = "is rejuvenated!";
pub const MAGICMAP: &str = "You recall your surroundings!";
pub const MAGICMAP_CURSED: &str = "... but forget where you last were";
pub const NUTRITION: &str = "You eat the";
pub const NUTRITION_CURSED: &str = "Blech! Rotten";
pub const NUTRITION_BLESSED: &str = "Delicious";

View file

@ -7,7 +7,6 @@ use std::sync::Mutex;
mod damage;
mod hunger;
mod messages;
mod particles;
mod targeting;
mod triggers;

View file

@ -1,4 +1,4 @@
use super::{ add_effect, get_noncursed, messages::*, particles, spatial, EffectType, Entity, Targets, World };
use super::{ add_effect, get_noncursed, particles, spatial, EffectType, Entity, Targets, World };
use crate::{
gamelog,
gui::item_colour_ecs,
@ -30,6 +30,7 @@ use crate::{
SingleActivation,
BUC,
};
use crate::config::messages::*;
use rltk::prelude::*;
use specs::prelude::*;
pub fn item_trigger(source: Option<Entity>, item: Entity, target: &Targets, ecs: &mut World) {