mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 16:17:27 +00:00
Chances of triggering effects (#27056)
* electrocution
* slippery
* flashibg
* Update SlipperyComponent.cs
* Update SlipperySystem.cs
(cherry picked from commit 5659edd207)
This commit is contained in:
@@ -213,6 +213,9 @@ public sealed class ElectrocutionSystem : SharedElectrocutionSystem
|
||||
if (!IsPowered(uid, electrified, transform))
|
||||
return false;
|
||||
|
||||
if (!_random.Prob(electrified.Probability))
|
||||
return false;
|
||||
|
||||
EnsureComp<ActivatedElectrifiedComponent>(uid);
|
||||
_appearance.SetData(uid, ElectrifiedVisuals.IsPowered, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user