Added stance component that persists even after sheathing weapon (does not yet work with M1 replacement).

This commit is contained in:
Sam
2022-10-30 00:58:16 -04:00
parent d0a46ed82b
commit 9875008efa
56 changed files with 198 additions and 266 deletions

View File

@ -288,6 +288,7 @@ impl StateExt for State {
.with(comp::Buffs::default())
.with(comp::Combo::default())
.with(comp::Auras::default())
.with(comp::Stance::default())
}
fn create_object(&mut self, pos: comp::Pos, object: comp::object::Body) -> EcsEntityBuilder {
@ -560,6 +561,7 @@ impl StateExt for State {
self.write_component_ignore_entity_dead(entity, comp::Buffs::default());
self.write_component_ignore_entity_dead(entity, comp::Auras::default());
self.write_component_ignore_entity_dead(entity, comp::Combo::default());
self.write_component_ignore_entity_dead(entity, comp::Stance::default());
// Make sure physics components are updated
self.write_component_ignore_entity_dead(entity, comp::ForceUpdate::forced());