Added documentation

This commit is contained in:
Sam 2023-07-28 22:24:07 -04:00
parent e3ad16ef47
commit 4bc6d9a6dc
3 changed files with 6 additions and 3 deletions

View File

@ -6,7 +6,7 @@
guard: Some(Contextualized(
pseudo_id: "veloren.core.pseudo_abilities.sword.guard",
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")),
],
)),

View File

@ -65,11 +65,12 @@ pub struct Stats {
pub attack_damage_modifier: f32,
pub crit_chance_modifier: StatsModifier,
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>,
/// 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 energy_reward_modifier: f32,
// This creates effects when the entity is damaged
/// This creates effects when the entity is damaged
pub effects_on_damaged: Vec<DamagedEffect>,
}

View File

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