3271 Commits

Author SHA1 Message Date
Justin Shipsey
80908f969a Merge branch 'kemper/sand-shark-hitbox' into 'master'
Better sand shark hitbox

See merge request veloren/veloren!2956
2021-10-24 22:03:08 +00:00
Kemper
beb2cad73a Adjust sand shark hitbox 2021-10-24 21:04:46 +00:00
ubruntu
a41fc4cba7 Use stealth stat on armors 2021-10-24 05:31:49 +00:00
Bryant Deters
3f48604db5 Sneak with weapons drawn 2021-10-18 14:53:55 -05:00
Joshua Barretto
7adbc2f7b5 Merge branch 'socksonme/refactor_villageralarm' into 'master'
Socksonme/refactor villageralarm

See merge request veloren/veloren!2931
2021-10-17 12:47:19 +00:00
Joshua Barretto
2da9f7994f Merge branch 'zesterer/small-fixes' into 'master'
Caverns

See merge request veloren/veloren!2763
2021-10-16 09:33:57 +00:00
Sam
72dc5960d6 Correctly took dot product, switched to square root of dot product 2021-10-15 22:41:53 -04:00
Sam
c7381d13cd Removed angle between with dot product in handle_orientation. 2021-10-15 17:26:10 -04:00
socksonme
092720346e Refactored SoundKind and UtteranceKind 2021-10-15 22:49:25 +03:00
Imbris
fc97e72bf4 Fix NaNs 2021-10-15 13:17:13 -04:00
Imbris
4183fb2551 Add test for Ori::angle_between 2021-10-15 12:02:53 -04:00
Imbris
1ad6b5adb4 Fix issue with angle between going over PI and remove faulty test (angle between Quaternions isn't equivalent to the angle between Dir vectors since Quaternions involve rolling as well) 2021-10-15 03:20:40 -04:00
Imbris
4ea6842932 Remove timings and commented code (separate from the previous commit so we can keep these notes in the git history), add potentially better version of the straight up/down case for to_horizontal as a comment for testing in the future, remove fine grained spans 2021-10-15 01:38:56 -04:00
Imbris
0b115af398 Improve Ori impl of From<Dir> and Ori::to_horizontal by avoiding acos/asin calls by constructing the quaternions in a more direct fashion 2021-10-15 01:23:00 -04:00
Imbris
7b35f14043 Remove per entity VecDeque's of events from character StateUpdate and instead pass in external Vecs that can be pushed to (saves significant time not allocating for VecDeque::new) 2021-10-15 01:23:00 -04:00
Imbris
33af9a8bbd Rewrite Ori::to_horizontal to reduce redundant normalization and directly calculate the needed yaw instead of using the more general Ori::from(dir), fix bugs in Ori::from(dir) and optimize the up/down case, add tests for Ori::to_horizontal and Ori::angle_between 2021-10-15 01:23:00 -04:00
Imbris
4330a8c24b Improve efficiency of states::utils::handle_orientation by reducing the conversions between Ori/Dir less frequent and optimizing the conversion of Dir -> Ori, also added a method to compute the angle between two Ori so that they don't need to be converted to Dir 2021-10-15 01:23:00 -04:00
Henry Corse
54411e5a7f Kaedr/pretty printing error messages 2021-10-14 18:37:51 +00:00
Sam
6df744b0ff Fix block energy cost being multiplied by 10 and also slightly reduce it. 2021-10-13 10:02:28 -04:00
Imbris
2b5bc54b6a Merge branch 'imbris/opt-phys-2.0' into 'master'
Make terrain physics faster with internal iteration

See merge request veloren/veloren!2915
2021-10-11 14:52:46 +00:00
juliancoffee
a4f882a8d6 Fix Traveller names
- Previously RtSim were created with automatic name for body generated
  from EntityConfig, not from RtSim body. Now RtSim body is set for
  EntityConfig.
2021-10-11 15:06:43 +03:00
Samuel Keiffer
68e7d37ffd Merge branch 'sam/wiki-all-entities' into 'master'
Csv export entity drops tool now has ability to export all entities at once.

See merge request veloren/veloren!2910
2021-10-10 16:56:46 +00:00
Sam
8791f994dc Now stores a column for entity path to more easily allow searching for what drops a particular item in the future
Fixed excel perceiving certain csv entries as a date
2021-10-10 12:37:16 -04:00
Joshua Barretto
2f5833a004 Better vines and lighting 2021-10-10 13:41:57 +01:00
Joshua Barretto
4ca4e0c16a Added new cavern sprites to caverns 2021-10-10 13:41:57 +01:00
Monty Marz
265db2ba7f cavern sprites 2021-10-10 13:41:56 +01:00
Joshua Barretto
b12494d72b More cavern details 2021-10-10 13:41:56 +01:00
Joshua Barretto
7453368595 Performance improvements for terrain watcher 2021-10-10 13:41:56 +01:00
Joshua Barretto
6e76fddc44 Added caverns, fixed chunk load performance issue 2021-10-10 13:41:56 +01:00
Imbris
f96a8a11ab Remove dead commented code, updated changelog, commented profiling spans
(but left in for easy reuse later), fix clippy complaint
2021-10-10 03:09:03 -04:00
Imbris
8837dc81d5 Rearrange iteration pattern so that x is in the inner loop in the default for_each_in (no or little perf change) 2021-10-10 02:42:07 -04:00
Imbris
34beb11557 Switch to for loops in default for_each_in (small perf increase), add inline to sprite methods (no perf change) 2021-10-10 02:42:07 -04:00
Imbris
6fb2e66dc1 Remove custom for_each_in from Chonk 2021-10-10 02:42:07 -04:00
Imbris
fb68bb3870 Make LiquidKind::merge as inlineable, remove always from TerrainGrid::for_each_in inline annotation 2021-10-10 02:42:07 -04:00
Imbris
3e84bb0669 Try marking VolGrid2d::for_each_in and friends as inlineable 2021-10-10 02:42:07 -04:00
Imbris
81d426f7a0 Try marking Chonk::for_each_in and related functions as inlineable 2021-10-10 02:42:07 -04:00
Imbris
685bcb5c62 simplify water/walls check code, interally iterate in chonks (but not
chunks)
2021-10-10 02:42:06 -04:00
Imbris
77a1fc26bd Refactor some of the terrain collision code, failed pre-emptive liquid check experiment 2021-10-10 02:42:06 -04:00
Imbris
3f3eb637c4 Do iteration check for snapping after checking the other conditions 2021-10-10 02:42:06 -04:00
Imbris
bfece25bba Convert water/walls check to the new iteration function 2021-10-10 02:42:06 -04:00
Imbris
c22636a4b8 Initial iterator optimization by using internal iteration at the vol_grid level, water/walls not switched over yet 2021-10-10 02:42:06 -04:00
Imbris
5394ab16bb Submit chunk requests to the generator within the terrain system right before receiving new chunks, so that duplicate work is not done for chunks that just finished but were not yet added to the terrain. 2021-10-08 16:17:31 -04:00
Sam
e794758dad Csv export entity drops tool now has ability to export all entities at once. 2021-10-07 20:28:18 -04:00
Treeco
7fefaaaf7b Added mottled bark to birch 2021-10-06 02:26:43 +01:00
Samuel Keiffer
10cadcd014 Merge branch 'sam/wiki-loot' into 'master'
Created csv export tool to get all item drops from an entity

See merge request veloren/veloren!2892
2021-10-05 15:45:22 +00:00
Sam
8785ecfdeb Now outputs item names instead of item asset paths. 2021-10-04 21:46:19 -04:00
ubruntu
e80079ed99 Interactable campfires 2021-10-05 00:55:29 +00:00
Joshua Barretto
6af866ce50 Rebalanced boat speed 2021-10-05 00:02:03 +01:00
Joshua Barretto
28459ae27d Fixed sail boat thrust, removed dead water code, added comments 2021-10-05 00:02:03 +01:00
Joshua Barretto
631d8c6603 Cleaned up shrub implementation 2021-10-05 00:02:03 +01:00