Merge pull request 'added more to customs, fixed spacings' (#3) from CWX/ValensHasThePower:main into main
Reviewed-on: #3
This commit is contained in:
commit
6c7a0c2c83
@ -23,40 +23,63 @@ namespace ValensHasThePower
|
||||
PowerOn.Customs();
|
||||
}
|
||||
|
||||
public static void Interchange()
|
||||
private static void Interchange()
|
||||
{
|
||||
var power = GameObject.FindObjectsOfType<Switch>().ToList();
|
||||
foreach (var Switch in power) // Turn the Power Station switch to On.
|
||||
|
||||
foreach (var switches in power) // Turn the Power Station switch to On.
|
||||
{
|
||||
//Interchange - Power to Mall
|
||||
if (Switch.Id == "Shopping_Mall_DesignStuff_00055" && Switch.name == "reserve_electric_switcher_lever")
|
||||
var lamps = switches.Lamps.ToList();
|
||||
|
||||
// turns on lamps
|
||||
foreach (var lamp in lamps)
|
||||
{
|
||||
Switch.DoorState = EDoorState.Open;
|
||||
Debug.LogError(Switch.name);
|
||||
lamp.Enabled = true;
|
||||
}
|
||||
|
||||
// Power to Mall
|
||||
if (switches.Id == "Shopping_Mall_DesignStuff_00055" && switches.name == "reserve_electric_switcher_lever")
|
||||
{
|
||||
switches.DoorState = EDoorState.Open;
|
||||
Debug.LogError(switches.name);
|
||||
}
|
||||
|
||||
// Activation of Toilet Key Card Reader in Burger Stop
|
||||
if (Switch.name == "Node_Keycard_Saferoom")
|
||||
if (switches.name == "Node_Keycard_Saferoom")
|
||||
{
|
||||
Switch.DoorState = EDoorState.Open;
|
||||
switches.DoorState = EDoorState.Open;
|
||||
}
|
||||
|
||||
// Activation of OBJ21 Container
|
||||
if (Switch.Id == "Shopping_Mall_DesignStuff_00061" && Switch.Id == "reserve_electric_switcher_lever")
|
||||
if (switches.Id == "Shopping_Mall_DesignStuff_00061" && switches.Id == "reserve_electric_switcher_lever")
|
||||
{
|
||||
Switch.DoorState = EDoorState.Open;
|
||||
switches.DoorState = EDoorState.Open;
|
||||
}
|
||||
}
|
||||
}
|
||||
public static void Customs()
|
||||
|
||||
private static void Customs()
|
||||
{
|
||||
var power = GameObject.FindObjectsOfType<Switch>().ToList();
|
||||
var exfil = GameObject.FindObjectsOfType<ExfiltrationPoint>().ToList();
|
||||
foreach (var Switch in power)
|
||||
|
||||
foreach (var switches in power) // turns on power on customs
|
||||
{
|
||||
if (Switch.Id == "custom_DesignStuff_00034" && Switch.name == "reserve_electric_switcher_lever")
|
||||
if (switches.Id == "custom_DesignStuff_00034" && switches.name == "reserve_electric_switcher_lever")
|
||||
{
|
||||
Switch.DoorState = EDoorState.Open;
|
||||
var lamps = switches.Lamps.ToList();
|
||||
var exfil = switches.ExfiltrationPoint;
|
||||
|
||||
// turns on lamps
|
||||
foreach (var lamp in lamps)
|
||||
{
|
||||
lamp.Enabled = true;
|
||||
}
|
||||
|
||||
// turns on power
|
||||
switches.DoorState = EDoorState.Open;
|
||||
|
||||
// turns on exfil
|
||||
exfil.Status = EExfiltrationStatus.RegularMode;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user