chore: simplified formatting
This commit is contained in:
		
							parent
							
								
									31b5312cf5
								
							
						
					
					
						commit
						d3e8c75d1a
					
				|  | @ -32,8 +32,7 @@ void CharacterActor::_enter_tree() { GDGAMEONLY(); | ||||||
|     this->health = this->get_node<Health>("Health"); |     this->health = this->get_node<Health>("Health"); | ||||||
|     this->primary_weapon_pool = this->get_node<ProjectilePool>("ProjectilePool"); |     this->primary_weapon_pool = this->get_node<ProjectilePool>("ProjectilePool"); | ||||||
|     this->planner = this->get_node<goap::Planner>("Planner"); |     this->planner = this->get_node<goap::Planner>("Planner"); | ||||||
|     Ref<TunnelsGameMode> game_mode = GameRoot::get_singleton()->get_game_mode(); |     Ref<TunnelsGameMode>(GameRoot::get_singleton()->get_game_mode())->register_player_character(this); | ||||||
|     game_mode->register_player_character(this); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void CharacterActor::_process(double delta_time) { GDGAMEONLY(); | void CharacterActor::_process(double delta_time) { GDGAMEONLY(); | ||||||
|  | @ -157,7 +156,8 @@ bool CharacterActor::get_is_near_target() const { | ||||||
|     Node3D *target_node3d = Object::cast_to<Node3D>(this->target); |     Node3D *target_node3d = Object::cast_to<Node3D>(this->target); | ||||||
|     return target_marker |     return target_marker | ||||||
|         ? target_marker->is_point_on(this->get_global_position()) |         ? target_marker->is_point_on(this->get_global_position()) | ||||||
|         : (target_node3d && target_node3d->get_global_position().distance_to(this->get_global_position()) < 5.f); |         : (target_node3d | ||||||
|  |                 && target_node3d->get_global_position().distance_to(this->get_global_position()) < 5.f); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| Vector3 CharacterActor::get_move_target() const { | Vector3 CharacterActor::get_move_target() const { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Sara
						Sara