예제 #1
0
        protected override bool ServerIsSatisfied(ICharacter character, QuestRequirementState state)
        {
            var input = PlayerCharacter.GetPublicState(character).AppliedInput;

            return((input.MoveModes & CharacterMoveModes.ModifierRun)
                   == CharacterMoveModes.ModifierRun);
        }
예제 #2
0
        protected override bool ServerIsSatisfied(ICharacter character, QuestRequirementState state)
        {
            if (!character.IsOnline)
            {
                return(false);
            }

            // check that player character has a running modifier active
            var input = PlayerCharacter.GetPublicState(character).AppliedInput;

            return((input.MoveModes & CharacterMoveModes.ModifierRun)
                   == CharacterMoveModes.ModifierRun);
        }
        protected override bool ServerIsSatisfied(ICharacter character, QuestRequirementState state)
        {
            var completedCount = 0;
            var techNodes      = character.SharedGetTechnologies().Nodes;

            foreach (var techNode in techNodes)
            {
                if (techNode.Group == this.TechGroup)
                {
                    completedCount++;
                }
            }

            return(completedCount >= this.TechGroup.Nodes.Count);
        }
예제 #4
0
 protected override bool ServerIsSatisfied(ICharacter character, QuestRequirementState state)
 {
     return(character.SharedGetTechnologies()
            .SharedIsGroupUnlocked(this.TechGroup));
 }
 protected override bool ServerIsSatisfied(ICharacter character, QuestRequirementState state)
 {
     // never refreshed by the server
     return(false);
 }
예제 #6
0
 protected override bool ServerIsSatisfied(ICharacter character, QuestRequirementState state)
 {
     return(character.SharedHasSkill(this.Skill, this.MinLevel));
 }
예제 #7
0
 protected override bool ServerIsSatisfied(ICharacter character, QuestRequirementState state)
 {
     return(this.ProtoZone
            .ServerZoneInstance
            .IsContainsPosition(character.TilePosition));
 }
예제 #8
0
 protected override bool ServerIsSatisfied(ICharacter character, QuestRequirementState state)
 {
     return(character.Tile.ProtoTile == this.ProtoTile);
 }