9 public override bool IsOn
36 if (member.IsAliveInCurrentZone && !member.IsPCParty && member.memberType == FactionMemberType.Default)
54 if (!
IsOn && ShouldWork())
57 EClass._zone.dirtyElectricity =
true;
58 owner.Say(
"generator_start", owner);
59 owner.PlaySound(
"electricity_on");
74 EClass._zone.dirtyElectricity =
true;
75 owner.Say(
"generator_stop", owner);
76 owner.PlaySound(
"electricity_off");
90 if (!owner.pos.HasChara)
void Teleport(Point point, bool silent=false, bool force=false)
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
void RefreshWorkElements(ElementContainer parent=null)
override bool IsPCFaction
FactionMemberType memberType
static FactionBranch Branch
static LayerPeople CreateSelect(string langHeader, string langHint, Action< UIList > onList, Action< Chara > onClick, Func< Chara, string > _onShowSubText=null)
override bool CanUse(Chara c)
override void OnStepped(Chara c)
override bool OnUse(Chara c)
override void OnSteppedOut(Chara c)
ElementContainerZone elements