From 6bb1917d4c99a196f3ea8903e9b55f4b5504b1da Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Wed, 22 Jun 2022 23:19:40 -0700 Subject: [PATCH] F scripts --- dScripts/EnemySpiderSpawner.cpp | 2 -- dScripts/ExplodingAsset.cpp | 2 -- dScripts/FallingTile.cpp | 1 - dScripts/FlameJetServer.cpp | 1 - dScripts/ForceVolumeServer.cpp | 9 +-------- 5 files changed, 1 insertion(+), 14 deletions(-) diff --git a/dScripts/EnemySpiderSpawner.cpp b/dScripts/EnemySpiderSpawner.cpp index 96f5e6c8..98524ae1 100644 --- a/dScripts/EnemySpiderSpawner.cpp +++ b/dScripts/EnemySpiderSpawner.cpp @@ -1,9 +1,7 @@ #include "EnemySpiderSpawner.h" #include "GameMessages.h" -#include "SimplePhysicsComponent.h" #include "EntityManager.h" #include "DestroyableComponent.h" -#include "MovementAIComponent.h" //---------------------------------------------- //--Initiate egg hatching on call diff --git a/dScripts/ExplodingAsset.cpp b/dScripts/ExplodingAsset.cpp index bb2f5e03..b4bd6913 100644 --- a/dScripts/ExplodingAsset.cpp +++ b/dScripts/ExplodingAsset.cpp @@ -1,9 +1,7 @@ #include "ExplodingAsset.h" - #include "DestroyableComponent.h" #include "GameMessages.h" #include "MissionComponent.h" -#include "MissionTaskType.h" #include "SkillComponent.h" //TODO: this has to be updated so that you only get killed if you're in a certain radius. diff --git a/dScripts/FallingTile.cpp b/dScripts/FallingTile.cpp index 5bd8adc6..2dd8c7bc 100644 --- a/dScripts/FallingTile.cpp +++ b/dScripts/FallingTile.cpp @@ -2,7 +2,6 @@ #include "MovingPlatformComponent.h" #include "GameMessages.h" - void FallingTile::OnStartup(Entity* self) { auto* movingPlatfromComponent = self->GetComponent(); diff --git a/dScripts/FlameJetServer.cpp b/dScripts/FlameJetServer.cpp index 9ecf4fa2..0e6d91cc 100644 --- a/dScripts/FlameJetServer.cpp +++ b/dScripts/FlameJetServer.cpp @@ -1,5 +1,4 @@ #include "FlameJetServer.h" - #include "SkillComponent.h" #include "GameMessages.h" diff --git a/dScripts/ForceVolumeServer.cpp b/dScripts/ForceVolumeServer.cpp index fab84f1c..e9320527 100644 --- a/dScripts/ForceVolumeServer.cpp +++ b/dScripts/ForceVolumeServer.cpp @@ -1,19 +1,12 @@ #include "ForceVolumeServer.h" #include "PhantomPhysicsComponent.h" #include "EntityManager.h" -#include "dLogger.h" - void ForceVolumeServer::OnStartup(Entity* self) { auto* phantomPhysicsComponent = self->GetComponent(); - if (phantomPhysicsComponent == nullptr) - { - Game::logger->Log("ForceVolumeServer", "Failed to find PhantomPhysicsComponent\n"); - - return; - } + if (phantomPhysicsComponent == nullptr) return; const auto forceAmount = self->GetVar(u"ForceAmt"); const auto forceX = self->GetVar(u"ForceX");