Changelog and rebase fixes

This commit is contained in:
Sam 2023-07-29 19:12:54 -04:00
parent 4bc6d9a6dc
commit d2cbcbe698
6 changed files with 20 additions and 14 deletions

View File

@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Using Block('Alt' by default) in Defensive Stance now feels stronger - Using Block('Alt' by default) in Defensive Stance now feels stronger
- Recipe for twigs from wooden logs - Recipe for twigs from wooden logs
- First version of multisalvage that allows to obtain more than one piece of material from salvage - First version of multisalvage that allows to obtain more than one piece of material from salvage
- Axe
### Changed ### Changed
- Plugins now target wasm32-unknown-wasi and all wasm cfgs are gone - Plugins now target wasm32-unknown-wasi and all wasm cfgs are gone

View File

@ -7,7 +7,7 @@
pseudo_id: "veloren.core.pseudo_abilities.sword.guard", pseudo_id: "veloren.core.pseudo_abilities.sword.guard",
abilities: [ abilities: [
((stance: Sword(Defensive)), (None, "common.abilities.sword.defensive_guard")), ((stance: Sword(Defensive)), (None, "common.abilities.sword.defensive_guard")),
([], (None, "common.abilities.sword.basic_guard")), ((), (None, "common.abilities.sword.basic_guard")),
], ],
)), )),
primary: Contextualized( primary: Contextualized(

View File

@ -178,7 +178,7 @@ impl ActiveAbilities {
Ability::ToolGuard => ability_set(EquipSlot::ActiveMainhand) Ability::ToolGuard => ability_set(EquipSlot::ActiveMainhand)
.and_then(|abilities| { .and_then(|abilities| {
abilities abilities
.guard(Some(skill_set), contexts) .guard(Some(skill_set), context)
.map(|(a, i)| (a.ability.clone(), i)) .map(|(a, i)| (a.ability.clone(), i))
}) })
.map(|(ability, i)| { .map(|(ability, i)| {
@ -192,7 +192,7 @@ impl ActiveAbilities {
ability_set(EquipSlot::ActiveOffhand) ability_set(EquipSlot::ActiveOffhand)
.and_then(|abilities| { .and_then(|abilities| {
abilities abilities
.guard(Some(skill_set), contexts) .guard(Some(skill_set), context)
.map(|(a, i)| (a.ability.clone(), i)) .map(|(a, i)| (a.ability.clone(), i))
}) })
.map(|(ability, i)| { .map(|(ability, i)| {
@ -372,7 +372,7 @@ impl Ability {
Ability::ToolGuard => ability_set(EquipSlot::ActiveMainhand) Ability::ToolGuard => ability_set(EquipSlot::ActiveMainhand)
.and_then(|abilities| { .and_then(|abilities| {
abilities abilities
.guard(skillset, contexts) .guard(skillset, context)
.map(|a| a.0.id.as_str()) .map(|a| a.0.id.as_str())
.or_else(|| { .or_else(|| {
abilities abilities
@ -384,7 +384,7 @@ impl Ability {
.or_else(|| { .or_else(|| {
ability_set(EquipSlot::ActiveOffhand).and_then(|abilities| { ability_set(EquipSlot::ActiveOffhand).and_then(|abilities| {
abilities abilities
.guard(skillset, contexts) .guard(skillset, context)
.map(|a| a.0.id.as_str()) .map(|a| a.0.id.as_str())
.or_else(|| { .or_else(|| {
abilities abilities
@ -441,7 +441,8 @@ impl Ability {
Ability::ToolPrimary Ability::ToolPrimary
| Ability::ToolSecondary | Ability::ToolSecondary
| Ability::MainWeaponAux(_) | Ability::MainWeaponAux(_)
| Ability::OffWeaponAux(_) => true, | Ability::OffWeaponAux(_)
| Ability::ToolGuard => true,
Ability::SpeciesMovement | Ability::Empty => false, Ability::SpeciesMovement | Ability::Empty => false,
} }
} }

View File

@ -476,11 +476,11 @@ impl<T> AbilitySet<T> {
pub fn guard( pub fn guard(
&self, &self,
skillset: Option<&SkillSet>, skillset: Option<&SkillSet>,
contexts: &[AbilityContext], context: &AbilityContext,
) -> Option<(&T, Option<usize>)> { ) -> Option<(&T, Option<ContextualIndex>)> {
self.guard self.guard
.as_ref() .as_ref()
.and_then(|g| g.ability(skillset, contexts)) .and_then(|g| g.ability(skillset, context))
} }
pub fn primary( pub fn primary(

View File

@ -67,7 +67,8 @@ pub struct Stats {
pub swim_speed_modifier: f32, pub swim_speed_modifier: f32,
/// This adds effects to any attacks that the entity makes /// This adds effects to any attacks that the entity makes
pub effects_on_attack: Vec<AttackEffect>, pub effects_on_attack: Vec<AttackEffect>,
/// This is the fraction of damage reduction (from armor and other buffs) that gets ignored by attacks from this entity /// This is the fraction of damage reduction (from armor and other buffs)
/// that gets ignored by attacks from this entity
pub mitigations_penetration: f32, pub mitigations_penetration: f32,
pub energy_reward_modifier: f32, pub energy_reward_modifier: f32,
/// This creates effects when the entity is damaged /// This creates effects when the entity is damaged

View File

@ -29,10 +29,12 @@ pub struct StaticData {
pub buff_strength: f32, pub buff_strength: f32,
/// How long buff lasts /// How long buff lasts
pub buff_duration: Option<Secs>, pub buff_duration: Option<Secs>,
/// This is the minimum amount of combo required to enter this character state /// This is the minimum amount of combo required to enter this character
/// state
pub combo_cost: u32, pub combo_cost: u32,
pub combo_scaling: Option<ScalingKind>, pub combo_scaling: Option<ScalingKind>,
/// This is the amount of combo held by the entity when this character state was entered /// This is the amount of combo held by the entity when this character state
/// was entered
pub combo_on_use: u32, pub combo_on_use: u32,
/// What key is used to press ability /// What key is used to press ability
pub ability_info: AbilityInfo, pub ability_info: AbilityInfo,