Skip to content

Commit

Permalink
more instancecontent work;
Browse files Browse the repository at this point in the history
  • Loading branch information
hkAlice committed Mar 8, 2023
1 parent 9d5fc79 commit 3f2cb2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/world/Encounter/InstanceContent/IfritNormal.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Sapphire

void init() override
{
Logger::info( "ifrit FAN CLUB GEOcities <blink>EUNUCH ONLY</blink>" );
Logger::info( "stage 2 init" );
}

void update( uint64_t deltaTime ) override
Expand Down Expand Up @@ -55,7 +55,7 @@ namespace Sapphire

void init() override
{
Logger::info( "ifrit FAN CLUB GEOcities <blink>EUNUCH ONLY</blink>" );
Logger::info( "stage 1 init" );
}

void update( uint64_t deltaTime ) override
Expand All @@ -76,7 +76,7 @@ namespace Sapphire
m_pEncounter->addState( ifritTwoState );
}

if( timeElapsedMs > 10000 )
if( timeElapsedMs > 12000 )
{
pIfrit->hateListGetHighest()->die();
}
Expand Down
3 changes: 1 addition & 2 deletions src/world/Network/PacketWrappers/MoveActorPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ namespace Sapphire::Network::Packets::WorldPackets::Server
{

/**
* @brief The Client UI Initialization packet. This must be sent to the client
* once upon connection to configure the UI.
* @brief The MoveActor packet for updating an actor's position.
*/
class MoveActorPacket : public ZoneChannelPacket< FFXIVIpcActorMove >
{
Expand Down
5 changes: 3 additions & 2 deletions src/world/Territory/InstanceContent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ void Sapphire::InstanceContent::onUpdate( uint64_t tickCount )
// todo: revive players if trial/enclosed raid arena, add reset timer
if( m_instanceResetTime == 0 )
{
//sendDutyReset();
sendDutyReset();
m_instanceResetTime = tickCount + 3000;

return;
Expand All @@ -187,7 +187,7 @@ void Sapphire::InstanceContent::onUpdate( uint64_t tickCount )

if( m_instanceResetFinishTime == 0 )
{
m_instanceResetFinishTime = tickCount + 3000;
m_instanceResetFinishTime = tickCount + 5000;
m_pEncounter->reset();

auto& server = Common::Service< World::WorldServer >::ref();
Expand All @@ -202,6 +202,7 @@ void Sapphire::InstanceContent::onUpdate( uint64_t tickCount )
movePlayerToEntrance( *pPlayer );
auto zoneInPacket = makeActorControlSelf( pPlayer->getId(), Appear, 0x3, 0, 0, 0 );
auto setStatusPacket = makeActorControl( pPlayer->getId(), SetStatus, static_cast< uint8_t >( Common::ActorStatus::Idle ) );


server.queueForPlayer( pPlayer->getCharacterId(), zoneInPacket );
server.queueForPlayers( pPlayer->getInRangePlayerIds( true ), setStatusPacket );
Expand Down

0 comments on commit 3f2cb2f

Please sign in to comment.