mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 13:37:22 +00:00
I scripts
Removing extraneous includes from scripts that start with the letter I
This commit is contained in:
parent
3defd51441
commit
e3264e545b
@ -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
|
||||
|
@ -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)
|
||||
|
@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
#include "CppScripts.h"
|
||||
#include <map>
|
||||
|
||||
class ImgBrickConsoleQB : public CppScripts::Script
|
||||
{
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user