Skip to content

Commit

Permalink
Merge pull request #6152 from unitystation/Health-ReworkRebase
Browse files Browse the repository at this point in the history
Health rework
  • Loading branch information
Bod9001 committed Mar 7, 2021
2 parents c50f069 + b231323 commit e1f1176
Show file tree
Hide file tree
Showing 815 changed files with 51,969 additions and 12,432 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ private static void KillLocalPlayer()
{
if (CustomNetworkManager.Instance._isServer)
{
PlayerManager.LocalPlayerScript.playerHealth.ApplyDamage(null, 99999f, AttackType.Internal, DamageType.Brute);
PlayerManager.LocalPlayerScript.playerHealth.ApplyDamageToRandom(null, 99999f, AttackType.Internal, DamageType.Brute);
}
}
#if UNITY_EDITOR
Expand Down Expand Up @@ -308,7 +308,7 @@ private static void CrashIntoStation()

foreach ( var movableMatrix in matrices )
{
if ( movableMatrix == null || movableMatrix.GameObject.name.ToLower().Contains( "verylarge" ) )
if ( movableMatrix.GameObject.name.ToLower().Contains( "verylarge" ) )
{
continue;
}
Expand Down Expand Up @@ -426,11 +426,7 @@ private static void HealUp()
{
var playerScript = PlayerManager.LocalPlayerScript;
var health = playerScript.playerHealth;
foreach (var bodyPart in health.BodyParts)
{
bodyPart.HealDamage(200, DamageType.Brute);
bodyPart.HealDamage(200, DamageType.Burn);
}
health.ResetDamageAll();
playerScript.registerTile.ServerStandUp();
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions UnityProject/Assets/Mirror/Cloud/ApiConnector.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,18 @@ public void OnBeforeSerialize()

public TValue this[TKey key]
{
get { return ((IDictionary<TKey, TValue>)m_dict)[key]; }
set { ((IDictionary<TKey, TValue>)m_dict)[key] = value; }
get
{
return ((IDictionary<TKey, TValue>)m_dict)[key];
}
set
{
if (key == null)
{
return;
}
((IDictionary<TKey, TValue>)m_dict)[key] = value;
}
}

public void Add(TKey key, TValue value)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e1f1176

Please sign in to comment.