Campfires can set things on fire and water puts it out

This commit is contained in:
James Melkonian
2021-05-13 05:34:51 +00:00
committed by Imbris
parent 607f8b289b
commit 4d4bc132f4
4 changed files with 78 additions and 27 deletions

View File

@ -1191,17 +1191,30 @@ fn handle_spawn_campfire(
animated: true,
})
.with(WaypointArea::default())
.with(comp::Auras::new(vec![Aura::new(
AuraKind::Buff {
kind: BuffKind::CampfireHeal,
data: BuffData::new(0.02, Some(Duration::from_secs(1))),
category: BuffCategory::Natural,
source: BuffSource::World,
},
5.0,
None,
AuraTarget::All,
)]))
.with(comp::Auras::new(vec![
Aura::new(
AuraKind::Buff {
kind: BuffKind::CampfireHeal,
data: BuffData::new(0.02, Some(Duration::from_secs(1))),
category: BuffCategory::Natural,
source: BuffSource::World,
},
5.0,
None,
AuraTarget::All,
),
Aura::new(
AuraKind::Buff {
kind: BuffKind::Burning,
data: BuffData::new(20.0, Some(Duration::from_secs(10))),
category: BuffCategory::Natural,
source: BuffSource::World,
},
0.7,
None,
AuraTarget::All,
),
]))
.build();
server.notify_client(