Fixed quadruped hitboxes

This commit is contained in:
Joshua Barretto 2020-08-24 21:46:08 +01:00
parent 2b9d5ee4a2
commit e4de32ac25
2 changed files with 18 additions and 4 deletions

View File

@ -134,7 +134,7 @@
),
plot_town_path: (90, 70, 45),
plot_field_dirt: (35, 10, 5),
plot_field_dirt: (55, 20, 5),
plot_field_mound: (40, 60, 10),
wall_low: (130, 100, 0),

View File

@ -141,15 +141,29 @@ impl Body {
match self {
Body::Humanoid(_) => 0.35,
Body::QuadrupedSmall(_) => 0.4,
Body::QuadrupedMedium(_) => 0.45,
Body::QuadrupedLow(_) => 0.45,
Body::QuadrupedMedium(body) => match body.species {
quadruped_medium::Species::Grolgar => 1.9,
quadruped_medium::Species::Tarasque => 2.2,
quadruped_medium::Species::Lion => 1.9,
quadruped_medium::Species::Saber => 1.8,
quadruped_medium::Species::Catoblepas => 1.7,
_ => 1.5,
},
Body::QuadrupedLow(body) => match body.species {
quadruped_low::Species::Asp => 1.8,
quadruped_low::Species::Monitor => 1.75,
quadruped_low::Species::Crocodile => 2.1,
quadruped_low::Species::Salamander => 1.9,
quadruped_low::Species::Pangolin => 1.3,
_ => 1.6,
},
Body::Critter(_) => 0.3,
Body::BirdMedium(_) => 0.35,
Body::FishMedium(_) => 0.35,
Body::Dragon(_) => 8.0,
Body::BirdSmall(_) => 0.3,
Body::FishSmall(_) => 0.3,
Body::BipedLarge(_) => 0.5,
Body::BipedLarge(_) => 0.75,
Body::Golem(_) => 0.4,
Body::Object(_) => 0.4,
}