just simple cleanup.
This commit is contained in:
parent
a083065fbd
commit
f54f91cfad
@ -27,22 +27,22 @@ namespace DiIiS_NA.GameServer.GSSystem.ActorSystem.Implementations
|
|||||||
|
|
||||||
public override void OnTargeted(Player player, TargetMessage message)
|
public override void OnTargeted(Player player, TargetMessage message)
|
||||||
{
|
{
|
||||||
bool Activated = false;
|
bool activated = false;
|
||||||
|
|
||||||
this.PlayAnimation(5, (AnimationSno)AnimationSet.TagMapAnimDefault[AnimationSetKeys.Opening]);
|
PlayAnimation(5, (AnimationSno)AnimationSet.TagMapAnimDefault[AnimationSetKeys.Opening]);
|
||||||
Attributes[GameAttribute.Team_Override] = (Activated ? -1 : 2);
|
Attributes[GameAttribute.Team_Override] = (activated ? -1 : 2);
|
||||||
Attributes[GameAttribute.Untargetable] = !Activated;
|
Attributes[GameAttribute.Untargetable] = !activated;
|
||||||
Attributes[GameAttribute.NPC_Is_Operatable] = Activated;
|
Attributes[GameAttribute.NPC_Is_Operatable] = activated;
|
||||||
Attributes[GameAttribute.Operatable] = Activated;
|
Attributes[GameAttribute.Operatable] = activated;
|
||||||
Attributes[GameAttribute.Operatable_Story_Gizmo] = Activated;
|
Attributes[GameAttribute.Operatable_Story_Gizmo] = activated;
|
||||||
Attributes[GameAttribute.Disabled] = !Activated;
|
Attributes[GameAttribute.Disabled] = !activated;
|
||||||
Attributes[GameAttribute.Immunity] = !Activated;
|
Attributes[GameAttribute.Immunity] = !activated;
|
||||||
Attributes.BroadcastChangedIfRevealed();
|
Attributes.BroadcastChangedIfRevealed();
|
||||||
CollFlags = 0;
|
CollFlags = 0;
|
||||||
|
|
||||||
TickTimer Timeout = new SecondsTickTimer(World.Game, 3.5f);
|
TickTimer timeout = new SecondsTickTimer(World.Game, 3.5f);
|
||||||
var Boom = Task<bool>.Factory.StartNew(() => WaitToSpawn(Timeout));
|
var boom = Task<bool>.Factory.StartNew(() => WaitToSpawn(timeout));
|
||||||
Boom.ContinueWith(delegate
|
boom.ContinueWith(delegate
|
||||||
{
|
{
|
||||||
var actor = World.GetActorBySNO(ActorSno._x1_openworld_challenge_rifts_portal);
|
var actor = World.GetActorBySNO(ActorSno._x1_openworld_challenge_rifts_portal);
|
||||||
actor.SetVisible(true);
|
actor.SetVisible(true);
|
||||||
@ -59,7 +59,7 @@ namespace DiIiS_NA.GameServer.GSSystem.ActorSystem.Implementations
|
|||||||
|
|
||||||
public override bool Reveal(Player player)
|
public override bool Reveal(Player player)
|
||||||
{
|
{
|
||||||
if (!base.Reveal(player))
|
if (!base.Reveal(player))
|
||||||
return false;
|
return false;
|
||||||
if (!Attributes[GameAttribute.Operatable])
|
if (!Attributes[GameAttribute.Operatable])
|
||||||
{
|
{
|
||||||
@ -69,8 +69,9 @@ namespace DiIiS_NA.GameServer.GSSystem.ActorSystem.Implementations
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.PlayAnimation(5, (AnimationSno)AnimationSet.TagMapAnimDefault[AnimationSetKeys.Opening]);
|
PlayAnimation(5, (AnimationSno)AnimationSet.TagMapAnimDefault[AnimationSetKeys.Opening]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
user.block.title