Updated changelog

This commit is contained in:
Joshua Barretto 2020-07-07 01:11:37 +01:00
parent e626f6255f
commit d1cdb6ea55
9 changed files with 34 additions and 26 deletions

View File

@ -60,6 +60,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Connection screen fails after 4 minutes if it can't connect to the server instead of 80 minutes
- Rebuilt quadruped_medium animation and assets
- Disabled destruction of most blocks by explosions
- Disable damage to pets
- Made pets healable
- Rebalanced fire staff
- Animals are more effective in combat
- Pathfinding is much smoother and pets are cleverer
- Animals run/turn at different speeds
### Removed

View File

@ -8,7 +8,7 @@
label_break_value,
trait_alias,
type_alias_impl_trait,
option_zip,
option_zip
)]
#[macro_use] extern crate serde_derive;

View File

@ -242,14 +242,12 @@ impl<'a> System<'a> for Sys {
if let (Some(tgt_pos), Some(tgt_stats), tgt_alignment) = (
positions.get(*target),
stats.get(*target),
alignments
.get(*target)
.copied()
.unwrap_or(uids
.get(*target)
alignments.get(*target).copied().unwrap_or(
uids.get(*target)
.copied()
.map(Alignment::Owned)
.unwrap_or(Alignment::Wild)),
.unwrap_or(Alignment::Wild),
),
) {
if let Some(dir) = Dir::from_unnormalized(tgt_pos.0 - pos.0) {
inputs.look_dir = dir;

View File

@ -1,7 +1,7 @@
use crate::{
comp::{
projectile, Energy, EnergySource, HealthSource, Ori, PhysicsState, Pos, Projectile, Vel,
Alignment,
projectile, Alignment, Energy, EnergySource, HealthSource, Ori, PhysicsState, Pos,
Projectile, Vel,
},
event::{EventBus, LocalEvent, ServerEvent},
state::DeltaTime,
@ -89,11 +89,11 @@ impl<'a> System<'a> for Sys {
// Hacky: remove this when groups get implemented
let passive = uid_allocator
.retrieve_entity_internal(other.into())
.and_then(|other|
.and_then(|other| {
alignments
.get(other)
.map(|a| Alignment::Owned(owner_uid)
.passive_towards(*a)))
.get(other)
.map(|a| Alignment::Owned(owner_uid).passive_towards(*a))
})
.unwrap_or(false);
if other != projectile.owner.unwrap() && !passive {
server_emitter.emit(ServerEvent::Damage { uid: other, change });

View File

@ -507,7 +507,10 @@ fn handle_spawn(
String
) {
(Some(opt_align), Some(npc::NpcBody(id, mut body)), opt_amount, opt_ai) => {
let uid = server.state.read_component_cloned(target).expect("Expected player to have a UID");
let uid = server
.state
.read_component_cloned(target)
.expect("Expected player to have a UID");
if let Some(alignment) = parse_alignment(uid, &opt_align) {
let amount = opt_amount
.and_then(|a| a.parse().ok())

View File

@ -188,7 +188,8 @@ pub fn handle_inventory(server: &mut Server, entity: EcsEntity, manip: comp::Inv
let reinsert = if let Some(pos) =
state.read_storage::<comp::Pos>().get(entity)
{
let uid = state.read_component_cloned(entity)
let uid = state
.read_component_cloned(entity)
.expect("Expected player to have a UID");
if (
&state.read_storage::<comp::Alignment>(),
@ -222,10 +223,10 @@ pub fn handle_inventory(server: &mut Server, entity: EcsEntity, manip: comp::Inv
.map(|(entity, _, _)| entity);
nearest_tameable
} {
let _ = state.ecs().write_storage().insert(
tameable_entity,
comp::Alignment::Owned(uid),
);
let _ = state
.ecs()
.write_storage()
.insert(tameable_entity, comp::Alignment::Owned(uid));
let _ = state
.ecs()
.write_storage()

View File

@ -171,7 +171,10 @@ impl StateExt for State {
});
self.write_component(entity, comp::Gravity(1.0));
self.write_component(entity, comp::CharacterState::default());
self.write_component(entity, comp::Alignment::Owned(self.read_component_cloned(entity).unwrap()));
self.write_component(
entity,
comp::Alignment::Owned(self.read_component_cloned(entity).unwrap()),
);
// Set the character id for the player
// TODO this results in a warning in the console: "Error modifying synced

View File

@ -1,8 +1,8 @@
use super::SysTimer;
use common::{
comp::{
Body, CanBuild, CharacterState, Collider, Energy, Gravity, Item, LightEmitter, Loadout,
Mass, MountState, Mounting, Ori, Player, Pos, Scale, Stats, Sticky, Vel, Alignment,
Alignment, Body, CanBuild, CharacterState, Collider, Energy, Gravity, Item, LightEmitter,
Loadout, Mass, MountState, Mounting, Ori, Player, Pos, Scale, Stats, Sticky, Vel,
},
msg::EcsCompPacket,
sync::{CompSyncPackage, EntityPackage, EntitySyncPackage, Uid, UpdateTracker, WorldSyncExt},

View File

@ -59,10 +59,7 @@ impl SessionState {
{
let mut client = client.borrow_mut();
let my_entity = client.entity();
client
.state_mut()
.ecs_mut()
.insert(MyEntity(my_entity));
client.state_mut().ecs_mut().insert(MyEntity(my_entity));
}
let voxygen_i18n = load_expect::<VoxygenLocalization>(&i18n_asset_key(
&global_state.settings.language.selected_language,