Updated cloaking core name in LUA
This commit is contained in:
parent
16df2df5d9
commit
567b80a0ef
4 changed files with 19 additions and 19 deletions
|
@ -54,7 +54,7 @@ public class TileEntityCloakingDeviceCore extends WarpEnergyTE {
|
|||
|
||||
public TileEntityCloakingDeviceCore() {
|
||||
super();
|
||||
peripheralName = "cloakingdevicecore";
|
||||
peripheralName = "warpdriveCloakingCore";
|
||||
methodsArray = new String[] {
|
||||
"tier", // set field tier to 1 or 2, return field tier
|
||||
"isAssemblyValid", // returns true or false
|
||||
|
@ -370,12 +370,12 @@ public class TileEntityCloakingDeviceCore extends WarpEnergyTE {
|
|||
public void attach(IComputerAccess computer) {
|
||||
super.attach(computer);
|
||||
if (WarpDriveConfig.G_LUA_SCRIPTS != WarpDriveConfig.LUA_SCRIPTS_NONE) {
|
||||
computer.mount("/cloakingdevicecore", ComputerCraftAPI.createResourceMount(WarpDrive.class, "warpdrive", "lua/cloakingdevicecore"));
|
||||
computer.mount("/warpupdater", ComputerCraftAPI.createResourceMount(WarpDrive.class, "warpdrive", "lua/common/updater"));
|
||||
computer.mount("/cloakingcore", ComputerCraftAPI.createResourceMount(WarpDrive.class, WarpDrive.MODID.toLowerCase(), "lua/warpdriveCloakingCore"));
|
||||
computer.mount("/warpupdater", ComputerCraftAPI.createResourceMount(WarpDrive.class, WarpDrive.MODID.toLowerCase(), "lua/common/updater"));
|
||||
if (WarpDriveConfig.G_LUA_SCRIPTS == WarpDriveConfig.LUA_SCRIPTS_ALL) {
|
||||
computer.mount("/uncloak", ComputerCraftAPI.createResourceMount(WarpDrive.class, "warpdrive", "lua/cloakingdevicecore/uncloak"));
|
||||
computer.mount("/cloak1", ComputerCraftAPI.createResourceMount(WarpDrive.class, "warpdrive", "lua/cloakingdevicecore/cloak1"));
|
||||
computer.mount("/cloak2", ComputerCraftAPI.createResourceMount(WarpDrive.class, "warpdrive", "lua/cloakingdevicecore/cloak2"));
|
||||
computer.mount("/uncloak", ComputerCraftAPI.createResourceMount(WarpDrive.class, WarpDrive.MODID.toLowerCase(), "lua/warpdriveCloakingCore/uncloak"));
|
||||
computer.mount("/cloak1", ComputerCraftAPI.createResourceMount(WarpDrive.class, WarpDrive.MODID.toLowerCase(), "lua/warpdriveCloakingCore/cloak1"));
|
||||
computer.mount("/cloak2", ComputerCraftAPI.createResourceMount(WarpDrive.class, WarpDrive.MODID.toLowerCase(), "lua/warpdriveCloakingCore/cloak2"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ end
|
|||
|
||||
Side = { "bottom", "top", "back", "left", "right" }
|
||||
for i = 1,5 do
|
||||
if peripheral.getType(Side[i]) == "cloakingdevicecore" then
|
||||
if peripheral.getType(Side[i]) == "warpdriveCloakingCore" then
|
||||
warp = peripheral.wrap(Side[i])
|
||||
break
|
||||
else
|
||||
|
@ -16,22 +16,22 @@ end
|
|||
if warp == nil then
|
||||
term.setBackgroundColor(colors.red)
|
||||
term.setTextColor(colors.white)
|
||||
term.write("No cloak core detected")
|
||||
term.write("No cloaking core detected")
|
||||
else
|
||||
warp.tier(1)
|
||||
warp.enable(true)
|
||||
if warp.isAssemblyValid() then
|
||||
term.setBackgroundColor(colors.lime)
|
||||
term.setTextColor(colors.blue)
|
||||
term.write("Tier 1 cloak enabled")
|
||||
term.write("Tier 1 cloaking is enabled")
|
||||
else
|
||||
term.setBackgroundColor(colors.red)
|
||||
term.setTextColor(colors.white)
|
||||
term.write("Invalid assembly!")
|
||||
term.write("Invalid cloaking assembly!")
|
||||
term.setBackgroundColor(colors.black)
|
||||
term.setTextColor(colors.white)
|
||||
print()
|
||||
print("In each of the 6 directions, you need to place exactly 2 Cloaking device coils, for a total of 12 coils.")
|
||||
print("In each of the 6 directions, you need to place exactly 2 Cloaking coils, for a total of 12 coils.")
|
||||
print("The 6 inner coils shall be exactly one block away from the core.")
|
||||
print("The cloaking field will extend 5 blocks past the outer 6 coils.")
|
||||
print("Power consumption scales with the amount of cloaked blocks.")
|
|
@ -5,7 +5,7 @@ end
|
|||
|
||||
Side = { "bottom", "top", "back", "left", "right" }
|
||||
for i = 1,5 do
|
||||
if peripheral.getType(Side[i]) == "cloakingdevicecore" then
|
||||
if peripheral.getType(Side[i]) == "warpdriveCloakingCore" then
|
||||
warp = peripheral.wrap(Side[i])
|
||||
break
|
||||
else
|
||||
|
@ -16,22 +16,22 @@ end
|
|||
if warp == nil then
|
||||
term.setBackgroundColor(colors.red)
|
||||
term.setTextColor(colors.white)
|
||||
term.write("No cloak core detected")
|
||||
term.write("No cloaking core detected")
|
||||
else
|
||||
warp.tier(2)
|
||||
warp.enable(true)
|
||||
if warp.isAssemblyValid() then
|
||||
term.setBackgroundColor(colors.lime)
|
||||
term.setTextColor(colors.red)
|
||||
term.write("Tier 2 cloak enabled")
|
||||
term.write("Tier 2 cloaking is enabled")
|
||||
else
|
||||
term.setBackgroundColor(colors.red)
|
||||
term.setTextColor(colors.white)
|
||||
term.write("Invalid assembly!")
|
||||
term.write("Invalid cloaking assembly!")
|
||||
term.setBackgroundColor(colors.black)
|
||||
term.setTextColor(colors.white)
|
||||
print()
|
||||
print("In each of the 6 directions, you need to place exactly 2 Cloaking device coils, for a total of 12 coils.")
|
||||
print("In each of the 6 directions, you need to place exactly 2 Cloaking coils, for a total of 12 coils.")
|
||||
print("The 6 inner coils shall be exactly one block away from the core.")
|
||||
print("The cloaking field will extend 5 blocks past the outer 6 coils.")
|
||||
print("Power consumption scales with the amount of cloaked blocks.")
|
|
@ -5,7 +5,7 @@ end
|
|||
|
||||
Side = { "bottom", "top", "back", "left", "right" }
|
||||
for i = 1,5 do
|
||||
if peripheral.getType(Side[i]) == "cloakingdevicecore" then
|
||||
if peripheral.getType(Side[i]) == "warpdriveCloakingCore" then
|
||||
warp = peripheral.wrap(Side[i])
|
||||
break
|
||||
else
|
||||
|
@ -16,12 +16,12 @@ end
|
|||
if warp == nil then
|
||||
term.setBackgroundColor(colors.red)
|
||||
term.setTextColor(colors.white)
|
||||
term.write("No cloak core detected")
|
||||
term.write("No cloaking core detected")
|
||||
else
|
||||
warp.enable(false)
|
||||
term.setBackgroundColor(colors.lightGray)
|
||||
term.setTextColor(colors.black)
|
||||
term.write("Cloak disabled")
|
||||
term.write("Cloaking is disabled")
|
||||
end
|
||||
term.setBackgroundColor(colors.black)
|
||||
term.setTextColor(colors.white)
|
Loading…
Reference in a new issue