I scripts

Removing extraneous includes from scripts that start with the letter I
This commit is contained in:
EmosewaMC 2022-06-22 23:58:51 -07:00
parent 3defd51441
commit e3264e545b
4 changed files with 0 additions and 14 deletions

View File

@ -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

View File

@ -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<RebuildComponent>();
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<RebuildComponent>();
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)

View File

@ -1,6 +1,5 @@
#pragma once
#include "CppScripts.h"
#include <map>
class ImgBrickConsoleQB : public CppScripts::Script
{

View File

@ -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<std::u16string>(u"transferText");
if (transferText.empty())
transferText = u"DRAGON_EXIT_QUESTION";