From e3264e545b498b8571e93791c59f4cc8a76847ee Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Wed, 22 Jun 2022 23:58:51 -0700 Subject: [PATCH] I scripts Removing extraneous includes from scripts that start with the letter I --- dScripts/ImaginationShrineServer.cpp | 1 - dScripts/ImgBrickConsoleQB.cpp | 9 --------- dScripts/ImgBrickConsoleQB.h | 1 - dScripts/InstanceExitTransferPlayerToLastNonInstance.cpp | 3 --- 4 files changed, 14 deletions(-) diff --git a/dScripts/ImaginationShrineServer.cpp b/dScripts/ImaginationShrineServer.cpp index 0b40b44f..54c02614 100644 --- a/dScripts/ImaginationShrineServer.cpp +++ b/dScripts/ImaginationShrineServer.cpp @@ -1,7 +1,6 @@ #include "ImaginationShrineServer.h" #include "RebuildComponent.h" - void ImaginationShrineServer::OnUse(Entity* self, Entity* user) { // If the rebuild component is complete, use the shrine diff --git a/dScripts/ImgBrickConsoleQB.cpp b/dScripts/ImgBrickConsoleQB.cpp index 5ef518ec..0dfb6288 100644 --- a/dScripts/ImgBrickConsoleQB.cpp +++ b/dScripts/ImgBrickConsoleQB.cpp @@ -4,7 +4,6 @@ #include "EntityManager.h" #include "GameMessages.h" #include "MissionComponent.h" -#include "dLogger.h" #include "InventoryComponent.h" int32_t ImgBrickConsoleQB::ResetBricks = 30; @@ -198,8 +197,6 @@ void ImgBrickConsoleQB::OnDie(Entity* self, Entity* killer) self->SetVar(u"Died", true); - Game::logger->Log("ImgBrickConsoleQB", "On Die...\n"); - auto* rebuildComponent = self->GetComponent(); if (rebuildComponent->GetState() == REBUILD_COMPLETED) @@ -267,16 +264,12 @@ void ImgBrickConsoleQB::OnDie(Entity* self, Entity* killer) } self->SetNetworkVar(u"used", false); - - Game::logger->Log("ImgBrickConsoleQB", "Died...\n"); } void ImgBrickConsoleQB::OnTimerDone(Entity* self, std::string timerName) { if (timerName == "reset") { - Game::logger->Log("ImgBrickConsoleQB", "Resetting...\n"); - auto* rebuildComponent = self->GetComponent(); if (rebuildComponent->GetState() == REBUILD_OPEN) @@ -286,8 +279,6 @@ void ImgBrickConsoleQB::OnTimerDone(Entity* self, std::string timerName) } else if (timerName == "Die") { - Game::logger->Log("ImgBrickConsoleQB", "Die...\n"); - const auto consoles = EntityManager::Instance()->GetEntitiesInGroup("Console"); for (auto* console : consoles) diff --git a/dScripts/ImgBrickConsoleQB.h b/dScripts/ImgBrickConsoleQB.h index 1fdcf84a..f51f8e6c 100644 --- a/dScripts/ImgBrickConsoleQB.h +++ b/dScripts/ImgBrickConsoleQB.h @@ -1,6 +1,5 @@ #pragma once #include "CppScripts.h" -#include class ImgBrickConsoleQB : public CppScripts::Script { diff --git a/dScripts/InstanceExitTransferPlayerToLastNonInstance.cpp b/dScripts/InstanceExitTransferPlayerToLastNonInstance.cpp index f759edb7..307c6c73 100644 --- a/dScripts/InstanceExitTransferPlayerToLastNonInstance.cpp +++ b/dScripts/InstanceExitTransferPlayerToLastNonInstance.cpp @@ -2,13 +2,10 @@ #include "GameMessages.h" #include "Player.h" #include "Character.h" -#include "dLogger.h" #include "dServer.h" void InstanceExitTransferPlayerToLastNonInstance::OnUse(Entity* self, Entity* user) { - Game::logger->Log("Instance", "OnUse\n"); - auto transferText = self->GetVar(u"transferText"); if (transferText.empty()) transferText = u"DRAGON_EXIT_QUESTION";