Add new random events in EventsWorker: Introduce 'character_rest' and 'character_healer' events to enhance gameplay dynamics. Each event includes unique probabilities, descriptions, and health effects, enriching the personal event experience for characters.
This commit is contained in:
@@ -320,6 +320,34 @@ impl EventsWorker {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
RandomEvent {
|
||||||
|
id: "character_rest".to_string(),
|
||||||
|
probability_per_minute: 0.0015, // 0.15% pro Minute (reduziert)
|
||||||
|
event_type: EventType::Personal,
|
||||||
|
title: "Erholung".to_string(),
|
||||||
|
description: "Ein Charakter hat sich gut ausgeruht und gewinnt Gesundheit zurück.".to_string(),
|
||||||
|
effects: vec![
|
||||||
|
EventEffect::CharacterHealthChange {
|
||||||
|
probability: 1.0,
|
||||||
|
min_change: 3,
|
||||||
|
max_change: 10,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
RandomEvent {
|
||||||
|
id: "character_healer".to_string(),
|
||||||
|
probability_per_minute: 0.001, // 0.10% pro Minute (reduziert)
|
||||||
|
event_type: EventType::Personal,
|
||||||
|
title: "Heilerbesuch".to_string(),
|
||||||
|
description: "Ein Heiler behandelt einen Charakter. Die Gesundheit steigt.".to_string(),
|
||||||
|
effects: vec![
|
||||||
|
EventEffect::CharacterHealthChange {
|
||||||
|
probability: 1.0,
|
||||||
|
min_change: 8,
|
||||||
|
max_change: 20,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
RandomEvent {
|
RandomEvent {
|
||||||
id: "character_accident".to_string(),
|
id: "character_accident".to_string(),
|
||||||
probability_per_minute: 0.00075, // 0.075% pro Minute (reduziert auf 25% der ursprünglichen Rate)
|
probability_per_minute: 0.00075, // 0.075% pro Minute (reduziert auf 25% der ursprünglichen Rate)
|
||||||
|
|||||||
Reference in New Issue
Block a user