Skip to content

Commit 538b81a

Browse files
committed
partial class stuff
1 parent aeb38a7 commit 538b81a

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Content.Shared/Atmos/Rotting/SharedRottingSystem.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public int RotStage(EntityUid uid, RottingComponent? comp = null, PerishableComp
166166

167167
return (int) (comp.TotalRotTime.TotalSeconds / perishable.RotAfter.TotalSeconds);
168168
}
169+
<<<<<<< HEAD
169170

170171
#region Starlight
171172
public bool SetRotAfter(EntityUid uid, TimeSpan newTime, PerishableComponent? perishable = null)
@@ -177,4 +178,6 @@ public bool SetRotAfter(EntityUid uid, TimeSpan newTime, PerishableComponent? pe
177178
return true;
178179
}
179180
#endregion Starlight
181+
=======
182+
>>>>>>> 5792ab3c55 (partial class stuff)
180183
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using Content.Shared.Atmos.Rotting;
2+
3+
namespace Content.Shared.Atmos.Rotting;
4+
5+
public abstract partial class SharedRottingSystem
6+
{
7+
public bool SetRotAfter(EntityUid uid, TimeSpan newTime, PerishableComponent? perishable = null)
8+
{
9+
if (!Resolve(uid, ref perishable))
10+
return false;
11+
12+
perishable.RotAfter = newTime;
13+
return true;
14+
}
15+
}

0 commit comments

Comments
 (0)