v1.6.17.0 (Unto the Breach update)
This commit is contained in:
@@ -154,6 +154,9 @@ namespace Barotrauma
|
||||
case TreatmentEventData _:
|
||||
msg.WriteBoolean(AnimController.Anim == AnimController.Animation.CPR);
|
||||
break;
|
||||
case ConfirmRefundEventData _:
|
||||
//do nothing
|
||||
break;
|
||||
case CharacterStatusEventData _:
|
||||
//do nothing
|
||||
break;
|
||||
@@ -202,12 +205,16 @@ namespace Barotrauma
|
||||
keys[(int)InputType.Use].Held = useInput;
|
||||
keys[(int)InputType.Use].SetState(false, useInput);
|
||||
|
||||
bool crouching = msg.ReadBoolean();
|
||||
if (AnimController is HumanoidAnimController)
|
||||
{
|
||||
bool crouching = msg.ReadBoolean();
|
||||
keys[(int)InputType.Crouch].Held = crouching;
|
||||
keys[(int)InputType.Crouch].SetState(false, crouching);
|
||||
}
|
||||
else if (AnimController is FishAnimController fishAnim)
|
||||
{
|
||||
fishAnim.Reverse = msg.ReadBoolean();
|
||||
}
|
||||
|
||||
bool attackInput = msg.ReadBoolean();
|
||||
keys[(int)InputType.Attack].Held = attackInput;
|
||||
@@ -395,13 +402,13 @@ namespace Barotrauma
|
||||
ReadStatus(msg);
|
||||
break;
|
||||
case EventType.UpdateSkills:
|
||||
int skillCount = msg.ReadByte();
|
||||
for (int i = 0; i < skillCount; i++)
|
||||
Identifier skillIdentifier = msg.ReadIdentifier();
|
||||
if (!skillIdentifier.IsEmpty)
|
||||
{
|
||||
Identifier skillIdentifier = msg.ReadIdentifier();
|
||||
bool forceNotification = msg.ReadBoolean();
|
||||
float skillLevel = msg.ReadSingle();
|
||||
info?.SetSkillLevel(skillIdentifier, skillLevel);
|
||||
}
|
||||
info?.SetSkillLevel(skillIdentifier, skillLevel, forceNotification: forceNotification);
|
||||
}
|
||||
break;
|
||||
case EventType.SetAttackTarget:
|
||||
case EventType.ExecuteAttack:
|
||||
@@ -512,7 +519,12 @@ namespace Barotrauma
|
||||
break;
|
||||
case EventType.UpdateExperience:
|
||||
int experienceAmount = msg.ReadInt32();
|
||||
info?.SetExperience(experienceAmount);
|
||||
int additionalTalentPoints = msg.ReadInt32();
|
||||
if (info != null)
|
||||
{
|
||||
info.SetExperience(experienceAmount);
|
||||
info.AdditionalTalentPoints = additionalTalentPoints;
|
||||
}
|
||||
break;
|
||||
case EventType.UpdateTalents:
|
||||
ushort talentCount = msg.ReadUInt16();
|
||||
@@ -527,6 +539,20 @@ namespace Barotrauma
|
||||
int moneyAmount = msg.ReadInt32();
|
||||
SetMoney(moneyAmount);
|
||||
break;
|
||||
case EventType.UpdateTalentRefundPoints:
|
||||
int refundPoints = msg.ReadInt32();
|
||||
if (info != null)
|
||||
{
|
||||
if (refundPoints > info.TalentRefundPoints)
|
||||
{
|
||||
info.ShowTalentResetPopupOnOpen = true;
|
||||
}
|
||||
info.TalentRefundPoints = refundPoints;
|
||||
}
|
||||
break;
|
||||
case EventType.ConfirmTalentRefund:
|
||||
Info?.RefundTalents();
|
||||
break;
|
||||
case EventType.UpdatePermanentStats:
|
||||
byte savedStatValueCount = msg.ReadByte();
|
||||
StatTypes statType = (StatTypes)msg.ReadByte();
|
||||
|
||||
Reference in New Issue
Block a user