3203 Commits

Author SHA1 Message Date
Marcel
64a8e3c5df Merge branch 'xMAC94x/update-toolchain' into 'master'
update toolchain to `nightly-2021-09-24`

See merge request 
2021-09-26 19:25:02 +00:00
Samuel Keiffer
d7a89bf944 Merge branch 'sam/cr-weights' into 'master'
Changed weights of cr calculation and exp from cr formula.

See merge request 
2021-09-26 18:21:56 +00:00
Sam
14cdb2b803 Changed weights of cr calculation and exp from cr formula. 2021-09-25 21:52:20 -04:00
Sam
d0c78c3d63 Made poise a float at interface of module. 2021-09-25 14:07:47 -04:00
Marcel Märtens
96bd27db62 apply some clippy fixes that comes with the new toolchain version 2021-09-24 23:18:18 +02:00
Marcel Märtens
8c0c86b192 update toolchain to nightly-2021-09-24 2021-09-24 23:18:07 +02:00
Sam
961782851f Changed energy to internally use an integer with a high resolution, and externally to use a float. 2021-09-23 14:11:09 -04:00
heydabop
7087ffde7c
Fixes - Allow attacks and abilities to interrupt sprite interaction 2021-09-23 10:05:12 -05:00
Joshua Barretto
2417a40afd Fixed crash caused by invalid health, stated current <= maximum invariant more clearly 2021-09-23 12:36:03 +01:00
Snowram
b444a74d8f Consolidates projectile offsets into utils 2021-09-22 03:05:57 +02:00
Snowram
15b6f947c9 Set projectile offsets in states instead of globally 2021-09-22 01:07:09 +02:00
Snowram
5574554eda Set beam offset depending on body dimensions 2021-09-21 15:31:46 +02:00
Snowram
46021c31bd Bird large beam offset hack 2021-09-21 15:31:43 +02:00
jshipsey
7978b16820 animation tweaks 2021-09-21 15:30:43 +02:00
jshipsey
be53c407cb wyvern walk 2021-09-21 15:30:43 +02:00
Snowram
7384868c57 Adds flame wyvern npc 2021-09-21 15:30:42 +02:00
Marcel Märtens
636838f510 update crates 2021-09-20 14:39:01 +02:00
Joshua Barretto
717690b883 Merge branch 'james/rrt-pathfinding' into 'master'
Initial RRT flight pathfinding

See merge request 
2021-09-19 19:30:31 +00:00
Joshua Barretto
845f8977ff Merge branch 'juliancoffee/clay_gole_laser_fix' into 'master'
Tweak coefficient of beam_offset for clay_golem

See merge request 
2021-09-18 17:36:08 +00:00
juliancoffee
215f4b9be0 Tweak coefficient of beam_offset for clay_golem 2021-09-18 19:55:46 +03:00
Ben Wallis
4349a14064 * Added new Admin Commands window to egui, including Give Items and Kits sections
* Added widgets.rs to egui for reusable widgets
* Added filterable_list egui widget
* Reworked DebugShapeAction to be a more generic EguiAction which now allows for ChatCommands (used by admin tools) as well as DebugShape drawing requests.
* Fixed egui event handling so that typing/clicking within egui windows now correctly doesn't pass these events onto the game itself
* Removed /give_item limit for stackable items
2021-09-18 16:17:42 +01:00
Joshua Barretto
8d336d6625 Merge branch 'james/lava-dungeons' into 'master'
Prettier site2 houses

See merge request 
2021-09-18 14:58:42 +00:00
Justin Shipsey
ddf2c2915d Merge branch 'zesterer/remove-unscheduled-skydives' into 'master'
Remove unscheduled skydives

See merge request 
2021-09-18 04:53:22 +00:00
James Melkonian
571dac7904 Move rrt algorithm into its own function 2021-09-17 16:27:00 -07:00
James Melkonian
7f9ab102c7 Make RRT pathfinding a cfg feature 2021-09-17 16:01:20 -07:00
James Melkonian
746840404c Disable RRT pathfinding 2021-09-17 16:01:19 -07:00
James Melkonian
235e2def3b Initial RRT flight pathfinding 2021-09-17 16:01:19 -07:00
James Melkonian
7a72df7e27 Gable primitive and dungeon lava rooms 2021-09-17 15:45:26 -07:00
Joshua Barretto
a015035510 Use previous position caches for airship collision detection 2021-09-17 22:34:28 +01:00
Imbris
ada61107f9 Merge branch 'anomaluridae/cleanup-interactable' into 'master'
Seperation of targets vs interactables. Cleaner cursor interactions.

See merge request 
2021-09-17 19:25:08 +00:00
anomaluridae
dc76d5c05f is_solid() detects both solid rock and sprites (e.g. mineable ore). when in build mode, would like to be able to still mine if user cursor is over a mineable ore. so need to properly cast the build ray to use opaque (not fillable) blocks to get the proper position, vs the mineable block which may be nearer 2021-09-17 10:34:20 -07:00
anomaluridae
a7cee0f11b keep MAX_TARGET_RANGE within voxygen 2021-09-17 10:34:20 -07:00
anomaluridae
a02488ddd9 properly use the target vs pickup range, in choosing the interactable. when finding the target_entity, use the proper limited dist range (cast_dist) with the proper upper bounds. 2021-09-17 10:34:20 -07:00
anomaluridae
0f13db9600 make the ContollerInputs.select_pos be explicitly the breakable blacks for mining 2021-09-17 10:34:20 -07:00
juliancoffee
d3e08ff663 Rename EntityInfo level field to health_scaling 2021-09-17 20:12:42 +03:00
juliancoffee
27a36abafd Set z_min to 0 for terrain collision checks
This allows us have different z_min for e2e checks
2021-09-17 13:28:34 +03:00
juliancoffee
ab68c93724 Adress review
Make sausage ascii-art have `a` line inside of stadium
2021-09-17 13:28:34 +03:00
juliancoffee
938091e8a3 Adress review
- Rename Collider::get_radius to bounding_radius
- Check origin difference in CapsulePrism with EPSILON * 10.0 instead of
  magic 0.00001
- Add comments for closest_points, hardnened expression against NaNs
- Add comments to try_e2e_collision function, renamed to
  resolve_e2e_collision, make it return whether collision was triggered.
- Remove Collider::Box (it is Cylinder, which is subset of CapsulePrism
  with p0=p1=Vec2::zero())
2021-09-17 13:28:34 +03:00
juliancoffee
07804607e0 Implement capsule2capsule collisions 2021-09-17 13:28:34 +03:00
juliancoffee
103c4d7ffb Fix bug with zero-pushback for bigger colliders 2021-09-17 13:28:34 +03:00
juliancoffee
75954d289e Fix beam offsets
- Introduce notion of min and max radius for Body instead of old
  `radius()` function (which is renamed to `max_radius()`).
2021-09-17 13:28:34 +03:00
juliancoffee
d15900d613 Fix colliding bugs
- Make cylinder-like capsules prisms work without NaN in origin offsets.
Just return p0 as both origins instead of getting NaN by further
normalizing required because of how we rotate offsets.
- Fix pushback direction.
Make sure that pushback is calculated as our_pos - their_pos (and not
other way around).
- Fix colliding boundary detection.
Calculate center as Vec3::new(0, 0, height) and
not as `Vec3::new(0, height, 0)`.
2021-09-17 13:28:34 +03:00
juliancoffee
ab3e68f432 Refactor implementation of e2e collision
+ Add some hopefully helpful comments
+ Extract colliding tries to separate function
+ Move to Capsule + Cylinder collider combination instead of Capsule +
  Capsule.
2021-09-17 13:28:34 +03:00
juliancoffee
e56478204e Adress feedback
- Rewrite 2 * PI to TAU
- Some comment formatting
2021-09-17 13:28:34 +03:00
juliancoffee
58a4659c47 Remove body::Shape enum, make npc use CapsulePrism 2021-09-17 13:28:34 +03:00
juliancoffee
944e9263cb Implement CapsulePrism collisions 2021-09-17 13:28:34 +03:00
juliancoffee
1bb1b9c34e Refactor box_voxel_collision function 2021-09-17 13:28:34 +03:00
juliancoffee
feefd36036 Add CapsulePrism collider variant
+ Add placeholder physics collision implementation as copy of cylinder
  Box collider.
+ Display it with debug hitboxes.
2021-09-17 13:28:34 +03:00
Sam
46a6d21d63 Fixed exp fix mistake and fixed lava, campfire, and bomb damage. 2021-09-15 08:32:44 -04:00
Sam
01e3ddd6b8 Fixed health ui in few places and xp scaling from health. 2021-09-14 10:55:14 -04:00