private void OnInsulatedHandleState(EntityUid uid, InsulatedComponent insulated, ref ComponentHandleState args) { if (args.Current is not InsulatedComponentState state) { return; } insulated.SiemensCoefficient = state.SiemensCoefficient; }
private void OnInsulatedGetState(EntityUid uid, InsulatedComponent insulated, ref ComponentGetState args) { args.State = new InsulatedComponentState(insulated.SiemensCoefficient); }
private void OnInsulatedElectrocutionAttempt(EntityUid uid, InsulatedComponent insulated, ElectrocutionAttemptEvent args) { args.SiemensCoefficient *= insulated.SiemensCoefficient; }