text stringlengths 1 2.32k |
|---|
// (get) Token: 0x06002FAD RID: 12205 RVA: 0x001FC92C File Offset: 0x001FAB2C |
// (set) Token: 0x06002FAE RID: 12206 RVA: 0x001FC934 File Offset: 0x001FAB34 |
public float Value { get; set; } |
// Token: 0x17000C2B RID: 3115 |
// (get) Token: 0x06002FAF RID: 12207 RVA: 0x001FC93D File Offset: 0x001FAB3D |
// (set) Token: 0x06002FB0 RID: 12208 RVA: 0x001FC945 File Offset: 0x001FAB45 |
public Identifier SkillIdentifier { get; set; } |
// Token: 0x17000C2C RID: 3116 |
// (get) Token: 0x06002FB1 RID: 12209 RVA: 0x001FC94E File Offset: 0x001FAB4E |
public bool GainedFromAbility { get; } |
} |
} |
using System; |
using System.Collections.Generic; |
using System.Collections.Immutable; |
using System.Linq; |
using System.Runtime.CompilerServices; |
using System.Threading.Tasks; |
using Barotrauma.Items.Components; |
using Barotrauma.Networking; |
using Barotrauma.Steam; |
using FarseerPhysics; |
using Microsoft.Xna.Framework; |
using Steamworks.Data; |
namespace Barotrauma |
{ |
// Token: 0x02000154 RID: 340 |
internal static class AchievementManager |
{ |
// Token: 0x060028F9 RID: 10489 RVA: 0x001CFA40 File Offset: 0x001CDC40 |
public static void OnStartRound(Biome biome = null) |
{ |
AchievementManager.roundData = new AchievementManager.RoundData(); |
foreach (Item item in Item.ItemList) |
{ |
if (item.Submarine != null && item.Submarine.Info.Type == SubmarineType.Player) |
{ |
Reactor component = item.GetComponent<Reactor>(); |
if (component != null && component.Item.Condition > 0f) |
{ |
AchievementManager.roundData.Reactors.Add(component); |
} |
} |
} |
AchievementManager.pathFinder = new PathFinder(WayPoint.WayPointList, false); |
AchievementManager.cachedDistances.Clear(); |
if (GameMain.Client != null) |
{ |
return; |
} |
if (biome != null) |
{ |
GameSession gameSession = GameMain.GameSession; |
if (((gameSession != null) ? gameSession.GameMode : null) is CampaignMode) |
{ |
string text = biome.Identifier.Value.Replace(" ", ""); |
AchievementManager.UnlockAchievement(IdentifierExtensions.ToIdentifier("discover" + text), true, null, null); |
string text2 = text; |
Identifier identifier = IdentifierExtensions.ToIdentifier("europanridge"); |
if (text2 == ref identifier) |
{ |
NetworkMember networkMember = GameMain.NetworkMember; |
bool flag; |
if (networkMember == null) |
{ |
flag = false; |
} |
else |
{ |
ServerSettings serverSettings = networkMember.ServerSettings; |
flag = (((serverSettings != null) ? new RespawnMode?(serverSettings.RespawnMode) : null).GetValueOrDefault() == RespawnMode.Permadeath); |
} |
if (flag) |
{ |
AchievementManager.UnlockAchievement(IdentifierExtensions.ToIdentifier("getoutalive"), true, null, (Client client) => GameMain.GameSession.PermadeathCountForAccount(client.AccountId) <= 0); |
} |
} |
} |
} |
} |
// Token: 0x060028FA RID: 10490 RVA: 0x001CFBD0 File Offset: 0x001CDDD0 |
public static void Update(float deltaTime) |
{ |
if (GameMain.GameSession == null) |
{ |
return; |
} |
if (GameMain.Client != null) |
{ |
return; |
} |
AchievementManager.updateTimer -= deltaTime; |
if (AchievementManager.updateTimer > 0f) |
{ |
return; |
} |
AchievementManager.updateTimer = 1f; |
if (Level.Loaded != null && AchievementManager.roundData != null && Screen.Selected == GameMain.GameScreen) |
{ |
if (GameMain.GameSession.EventManager.CurrentIntensity > 0.99f) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.