text stringlengths 1 2.32k |
|---|
} |
} |
// Token: 0x06000B11 RID: 2833 RVA: 0x00067401 File Offset: 0x00065601 |
protected override bool DetermineCompleted() |
{ |
return this.State > 0 && this.State != 5; |
} |
// Token: 0x06000B12 RID: 2834 RVA: 0x0006741A File Offset: 0x0006561A |
protected override void EndMissionSpecific(bool completed) |
{ |
bool failed; |
if (!completed) |
{ |
failed = this.requireRescue.Any((Character r) => r.Removed || r.IsDead); |
} |
else |
{ |
failed = false; |
} |
this.failed = failed; |
} |
// Token: 0x06000B13 RID: 2835 RVA: 0x00067452 File Offset: 0x00065652 |
protected override void InitCharacter(Character character, XElement element) |
{ |
base.InitCharacter(character, element); |
if (element.GetAttributeBool("requirekill", false)) |
{ |
this.requireKill.Add(character); |
} |
} |
// Token: 0x06000B14 RID: 2836 RVA: 0x00067478 File Offset: 0x00065678 |
protected override Character LoadHuman(HumanPrefab humanPrefab, XElement element, Submarine submarine) |
{ |
Character character = base.LoadHuman(humanPrefab, element, submarine); |
bool attributeBool = element.GetAttributeBool("requirerescue", false); |
if (attributeBool) |
{ |
this.requireRescue.Add(character); |
if (this.allowOrderingRescuees) |
{ |
CrewManager crewManager = GameMain.GameSession.CrewManager; |
if (crewManager != null) |
{ |
crewManager.AddCharacterToCrewList(character); |
} |
} |
} |
else if (base.TimesAttempted > 0 && character.AIController is HumanAIController) |
{ |
Order order = OrderPrefab.Prefabs["fightintruders"].CreateInstance(OrderPrefab.OrderTargetType.Entity, character, false).WithManualPriority(CharacterInfo.HighestManualOrderPriority); |
character.SetOrder(order, true, false, false); |
} |
CharacterTeamType attributeEnum = element.GetAttributeEnum("teamid", attributeBool ? CharacterTeamType.FriendlyNPC : CharacterTeamType.None); |
if (attributeEnum != character.TeamID) |
{ |
character.SetOriginalTeamAndChangeTeam(attributeEnum, false); |
} |
return character; |
} |
// Token: 0x040005AB RID: 1451 |
protected readonly HashSet<Character> requireKill = new HashSet<Character>(); |
// Token: 0x040005AC RID: 1452 |
protected readonly HashSet<Character> requireRescue = new HashSet<Character>(); |
// Token: 0x040005AD RID: 1453 |
private readonly Identifier itemTag; |
// Token: 0x040005AE RID: 1454 |
private readonly XElement itemConfig; |
// Token: 0x040005AF RID: 1455 |
private readonly List<Item> items = new List<Item>(); |
// Token: 0x040005B0 RID: 1456 |
protected const int HostagesKilledState = 5; |
// Token: 0x040005B1 RID: 1457 |
private readonly LocalizedString hostagesKilledMessage; |
// Token: 0x040005B2 RID: 1458 |
private const float EndDelay = 5f; |
// Token: 0x040005B3 RID: 1459 |
private float endTimer; |
// Token: 0x040005B4 RID: 1460 |
private readonly bool allowOrderingRescuees; |
// Token: 0x040005B5 RID: 1461 |
protected bool wasDocked; |
} |
} |
using System; |
using Barotrauma.Abilities; |
namespace Barotrauma |
{ |
// Token: 0x020001CC RID: 460 |
internal class AbilityAfflictionCharacter : AbilityObject, IAbilityAffliction, IAbilityCharacter |
{ |
// Token: 0x060030BF RID: 12479 RVA: 0x00201F2B File Offset: 0x0020012B |
public AbilityAfflictionCharacter(Affliction affliction, Character character) |
{ |
this.Affliction = affliction; |
this.Character = character; |
} |
// Token: 0x17000C83 RID: 3203 |
// (get) Token: 0x060030C0 RID: 12480 RVA: 0x00201F41 File Offset: 0x00200141 |
// (set) Token: 0x060030C1 RID: 12481 RVA: 0x00201F49 File Offset: 0x00200149 |
public Character Character { get; set; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.