Skip to content

Commit

Permalink
2.2.1 - fix table coral for nonviolent
Browse files Browse the repository at this point in the history
  • Loading branch information
Cattlesquat committed Jan 31, 2021
1 parent 4160b45 commit 44abaef
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DeathRun/DeathRunUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace DeathRun

public class DeathRunUtils
{
public const string VERSION = "2.2.0";
public const string VERSION = "2.2.1";

public static CenterText[] centerMessages = new CenterText[] {
new CenterText(250f, true),
Expand Down
10 changes: 9 additions & 1 deletion DeathRun/Patchers/KnifePatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ public static bool Prefix(ref Knife __instance, GUIHand hand)
if (liveMixin)
{
bool wasAlive = liveMixin.IsAlive();
//liveMixin.TakeDamage(__instance.damage, position, __instance.damageType, null);
TechType t = CraftData.GetTechType(gameObject);
if ((t == TechType.GenericJeweledDisk) ||
(t == TechType.BlueJeweledDisk) ||
(t == TechType.GreenJeweledDisk) ||
(t == TechType.PurpleJeweledDisk) ||
(t == TechType.RedJeweledDisk))
{
liveMixin.TakeDamage(__instance.damage, position, __instance.damageType, null);
}
__instance.GiveResourceOnDamage(gameObject, liveMixin.IsAlive(), wasAlive);
}
global::Utils.PlayFMODAsset(__instance.attackSound, __instance.transform, 20f);
Expand Down
3 changes: 2 additions & 1 deletion DeathRun/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DEATH RUN - 2.2.0 - by Cattlesquat "standing on the shoulders of giants"
DEATH RUN - 2.2.1 - by Cattlesquat "standing on the shoulders of giants"

Turns Subnautica into a "roguelike" where everything is harder and the only real question is how LONG you can survive.

Expand All @@ -19,6 +19,7 @@ Turns Subnautica into a "roguelike" where everything is harder and the only real
• Vehicles and the Habitat Builder much more expensive

-------------------------------------------------------------------------------------------------------------
• 2.2.1 - Patched issue where "Nonviolent" knife couldn't cut Table Coral samples
• 2.2.0 - Integrated Filter Chip now purges nitrogen while you're inside a base
• 2.2.0 - Worse-than-DeathRun "Challenge" option for Radiation to go to 200m implemented
• 2.2.0 - Challenge options for Filter Pump (to not work "in" the Aurora, or optionally "near" it)
Expand Down
3 changes: 2 additions & 1 deletion QMods/DeathRun/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DEATH RUN - 2.2.0 - by Cattlesquat "standing on the shoulders of giants"
DEATH RUN - 2.2.1 - by Cattlesquat "standing on the shoulders of giants"

Turns Subnautica into a "roguelike" where everything is harder and the only real question is how LONG you can survive.

Expand All @@ -19,6 +19,7 @@ Turns Subnautica into a "roguelike" where everything is harder and the only real
• Vehicles and the Habitat Builder much more expensive

-------------------------------------------------------------------------------------------------------------
• 2.2.1 - Patched issue where "Nonviolent" knife couldn't cut Table Coral samples
• 2.2.0 - Integrated Filter Chip now purges nitrogen while you're inside a base
• 2.2.0 - Worse-than-DeathRun "Challenge" option for Radiation to go to 200m implemented
• 2.2.0 - Challenge options for Filter Pump (to not work "in" the Aurora, or optionally "near" it)
Expand Down

0 comments on commit 44abaef

Please sign in to comment.