commit
b5ed952f5a
6 changed files with 189 additions and 18 deletions
|
@ -54,7 +54,7 @@ getLibrary("CoFHCore-[1.7.10]3.0.0B2-dev-24.jar")
|
||||||
//getLibrary("ThermalExpansion-API-2.3.0b.zip")
|
//getLibrary("ThermalExpansion-API-2.3.0b.zip")
|
||||||
//getLibrary("CoFHCore-API.zip")
|
//getLibrary("CoFHCore-API.zip")
|
||||||
//getLibrary("CoFHLib-pre1.zip")
|
//getLibrary("CoFHLib-pre1.zip")
|
||||||
//getLibrary("galacticraft-src-2.zip")
|
getLibrary("GalacticraftCore-Dev-BETA-1.7-3.0.1.8-noassets.jar")
|
||||||
//getLibrary("Railcraft_API_latest.zip")
|
//getLibrary("Railcraft_API_latest.zip")
|
||||||
//getLibrary("MFR-API-2.5.2B2-642.zip")
|
//getLibrary("MFR-API-2.5.2B2-642.zip")
|
||||||
//getLibrary("forestry-api-2.3.0.1.zip")
|
//getLibrary("forestry-api-2.3.0.1.zip")
|
||||||
|
|
81
src/main/resources/assets/powersuits/lang/fr_FR.lang
Normal file
81
src/main/resources/assets/powersuits/lang/fr_FR.lang
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
Made by users: Mazdallier
|
||||||
|
Last edited on 10/07/14 11:00AM EST
|
||||||
|
|
||||||
|
tile.luxCapacitor.name=Condensateur Lux
|
||||||
|
tile.tinkerTable.name=Table de bricolage d'Armure énergétique
|
||||||
|
|
||||||
|
itemGroup.powersuits=Armure énergétique modulaire
|
||||||
|
|
||||||
|
item.powerArmorBoots.name=Bottes d'Armure énergétique
|
||||||
|
item.powerArmorLeggings.name=Pantalon d'Armure énergétique
|
||||||
|
item.powerArmorChestplate.name=Plastron d'Armure énergétique
|
||||||
|
item.powerArmorHelmet.name=Casque d'Armure énergétique
|
||||||
|
item.powerFist.name=Poing énergétique
|
||||||
|
|
||||||
|
item.powerArmorComponent.componentWiring.name=Câblage
|
||||||
|
item.powerArmorComponent.componentSolenoid.name=Solénoïde
|
||||||
|
item.powerArmorComponent.componentServo.name=Servo Moteur
|
||||||
|
item.powerArmorComponent.componentGliderWing.name=Ailes de planeur
|
||||||
|
item.powerArmorComponent.componentIonThruster.name=Propulseur Ion
|
||||||
|
item.powerArmorComponent.componentLVCapacitor.name=Condensateur BT
|
||||||
|
item.powerArmorComponent.componentMVCapacitor.name=Condensateur MT
|
||||||
|
item.powerArmorComponent.componentHVCapacitor.name=Condensateur HT
|
||||||
|
item.powerArmorComponent.componentParachute.name=Parachute
|
||||||
|
item.powerArmorComponent.componentPlatingBasic.name=Plaquage de base
|
||||||
|
item.powerArmorComponent.componentPlatingAdvanced.name=Plaquage avancé
|
||||||
|
item.powerArmorComponent.componentFieldEmitter.name=Emetteur de champ de force
|
||||||
|
item.powerArmorComponent.componentLaserEmitter.name=Emetteur d'hologramme
|
||||||
|
item.powerArmorComponent.componentCarbonMyofiber.name=Myofibre carbone
|
||||||
|
item.powerArmorComponent.componentControlCircuit.name=Circuit de contrôle
|
||||||
|
item.powerArmorComponent.componentMyofiberGel.name=Gel myofibre
|
||||||
|
item.powerArmorComponent.componentArtificialMuscle.name=Muscle artificiel
|
||||||
|
|
||||||
|
module.basicPlating.name=Plaquage en Fer
|
||||||
|
module.diamondPlating.name=Plaquage en Diamant
|
||||||
|
module.energyShield.name=Champ énergétique
|
||||||
|
module.heatSink.name=Dissipateur de chaleur
|
||||||
|
module.axe.name=Hache
|
||||||
|
module.pickaxe.name=Pioche
|
||||||
|
module.shovel.name=Pelle
|
||||||
|
module.shears.name=Ciseaux
|
||||||
|
module.hoe.name=Houe
|
||||||
|
module.luxCapacitor.name=Condensateur Lux
|
||||||
|
module.omniwrench.name=Prototype Multiclef
|
||||||
|
module.fieldTinkerer.name=Module de champ ambulant
|
||||||
|
module.meleeAssist.name=Assistant de combat
|
||||||
|
module.plasmaCannon.name=Canon à plasma
|
||||||
|
module.railgun.name=Railgun
|
||||||
|
module.bladeLauncher.name=Lanceur de lame
|
||||||
|
module.basicBattery.name=Batterie de base
|
||||||
|
module.eliteBattery.name=batterie élite
|
||||||
|
module.advancedBattery.name=Batterie avancée
|
||||||
|
module.parachute.name=Parachute
|
||||||
|
module.glider.name=Planneur
|
||||||
|
module.jetpack.name=Jetpack
|
||||||
|
module.sprintAssist.name=Assistant de course
|
||||||
|
module.jumpAssist.name=Assistant de saut
|
||||||
|
module.swimAssist.name=Amplificateur de nage
|
||||||
|
module.climbAssist.name=Assistant de monté de bloc
|
||||||
|
module.jetBoots.name=Bottes Jet
|
||||||
|
module.shockAbsorber.name=Absorbeur de choc
|
||||||
|
module.waterElectrolyzer.name=Electrolyseur d'eau
|
||||||
|
module.binoculars.name=Binoculaires
|
||||||
|
module.nightVision.name=Vision nocturne
|
||||||
|
module.flightControl.name=Contrôleur de vol
|
||||||
|
module.invisibility.name=Camouflage actif
|
||||||
|
module.blinkDrive.name=Pilote de clignotement
|
||||||
|
module.diamondPickUpgrade.name=Mise à jour foret diamant
|
||||||
|
module.aquaAffinity.name=Affinité aquatique
|
||||||
|
module.coolingSystem.name=Système de refroidissement
|
||||||
|
module.tint.name=Module de couleur personnalisée
|
||||||
|
module.transparentArmor.name=Armure transparente
|
||||||
|
module.cosmeticGlow.name=Module lumineux
|
||||||
|
module.mffsFieldTeleporter.name=Téléporteur de champ MFFS
|
||||||
|
module.grafter.name=Greffeur
|
||||||
|
module.apiaristArmor.name=Armure de l'apiariste
|
||||||
|
module.hazmat.name=Protection anti-radiation
|
||||||
|
module.redstoneLaser.name=Laser de Redstone
|
||||||
|
module.aurameter.name=Auramètre
|
||||||
|
module.airtightSeal.name=Etanchéité à l'air
|
||||||
|
module.citizenJoe.name=Armure Citizen Joe
|
||||||
|
module.sonicWeapon.name=Arme sonique
|
78
src/main/resources/assets/powersuits/lang/he_IL.lang
Normal file
78
src/main/resources/assets/powersuits/lang/he_IL.lang
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
tile.luxCapacitor.name=מאחסן אור
|
||||||
|
tile.tinkerTable.name=שולחן התעסקות לחליפות כוח
|
||||||
|
|
||||||
|
itemGroup.powersuits=חליפות כוח
|
||||||
|
|
||||||
|
item.powerArmorBoots.name=מגפי חליפת כוח
|
||||||
|
item.powerArmorLeggings.name=מכנסי חליפת כוח
|
||||||
|
item.powerArmorChestplate.name=שריון חליפת כוח
|
||||||
|
item.powerArmorHelmet.name=קסדת חליפת כוח
|
||||||
|
item.powerFist.name=זרוע כוח
|
||||||
|
|
||||||
|
item.powerArmorComponent.componentWiring.name=מחברים
|
||||||
|
item.powerArmorComponent.componentSolenoid.name=סולנואיד
|
||||||
|
item.powerArmorComponent.componentServo.name=מנוע סרוו
|
||||||
|
item.powerArmorComponent.componentGliderWing.name=כנף רחיפה
|
||||||
|
item.powerArmorComponent.componentIonThruster.name=מדחפי יונים
|
||||||
|
item.powerArmorComponent.componentLVCapacitor.name=מצבר מתח נמוך
|
||||||
|
item.powerArmorComponent.componentMVCapacitor.name=מצבר מתח בינוני
|
||||||
|
item.powerArmorComponent.componentHVCapacitor.name=מצבר מתח גבוה
|
||||||
|
item.powerArmorComponent.componentParachute.name=מצנח
|
||||||
|
item.powerArmorComponent.componentPlatingBasic.name=ציפוי בסיסי
|
||||||
|
item.powerArmorComponent.componentPlatingAdvanced.name=ציפוי מתקדם
|
||||||
|
item.powerArmorComponent.componentFieldEmitter.name=פולטן שדה כוח
|
||||||
|
item.powerArmorComponent.componentLaserEmitter.name=מקרן הולוגרמה
|
||||||
|
item.powerArmorComponent.componentCarbonMyofiber.name=סיבי פחמן
|
||||||
|
item.powerArmorComponent.componentControlCircuit.name=מעגל בקרה
|
||||||
|
item.powerArmorComponent.componentMyofiberGel.name=ג'ל סיבי
|
||||||
|
item.powerArmorComponent.componentArtificialMuscle.name=שריר מלאכותי
|
||||||
|
|
||||||
|
module.basicPlating.name=ציפוי ברזל
|
||||||
|
module.diamondPlating.name=ציפוי יהלום
|
||||||
|
module.energyShield.name=מגן אנרגיה
|
||||||
|
module.heatSink.name=סופג חום
|
||||||
|
module.axe.name=גרזן
|
||||||
|
module.pickaxe.name=מכוש
|
||||||
|
module.shovel.name=את
|
||||||
|
module.shears.name=מספריים
|
||||||
|
module.hoe.name=מחרשה סיבובית
|
||||||
|
module.luxCapacitor.name=מחולל אור
|
||||||
|
module.omniwrench.name=מפתח אב טיפוס
|
||||||
|
module.fieldTinkerer.name=מודול שדה התעסקות
|
||||||
|
module.meleeAssist.name=מסייע תגרה
|
||||||
|
module.plasmaCannon.name=תותח פלזמה
|
||||||
|
module.railgun.name=נשק ישיר
|
||||||
|
module.bladeLauncher.name=משגר להבים
|
||||||
|
module.basicBattery.name=סוללה בסיסית
|
||||||
|
module.eliteBattery.name=סוללת עלית
|
||||||
|
module.advancedBattery.name=סוללה מתקדמת
|
||||||
|
module.parachute.name=מצנח
|
||||||
|
module.glider.name=רחפן
|
||||||
|
module.jetpack.name=מדחף גב
|
||||||
|
module.sprintAssist.name=מסייע ריצה
|
||||||
|
module.jumpAssist.name=מסייע קפיצה
|
||||||
|
module.swimAssist.name=מאיץ שחייה
|
||||||
|
module.climbAssist.name=מסייע טיפוס
|
||||||
|
module.jetBoots.name=מגפי מדחף
|
||||||
|
module.shockAbsorber.name=בולם זעזועים
|
||||||
|
module.waterElectrolyzer.name=מחשמל מים
|
||||||
|
module.binoculars.name=משקפת
|
||||||
|
module.nightVision.name=ראיית לילה
|
||||||
|
module.flightControl.name=שליטת תעופה
|
||||||
|
module.invisibility.name=הסוואה פעילה
|
||||||
|
module.blinkDrive.name=מתקן השתגרות
|
||||||
|
module.diamondPickUpgrade.name=שדרוג מקדחת יהלום
|
||||||
|
module.aquaAffinity.name=זיקה למים
|
||||||
|
module.coolingSystem.name=מערכת קירור
|
||||||
|
module.tint.name=מודול צבע בהתאמה אישית
|
||||||
|
module.transparentArmor.name=שריון שקוף
|
||||||
|
module.cosmeticGlow.name=מודול זוהר
|
||||||
|
module.mffsFieldTeleporter.name=משגר שדה כוח מודולארי
|
||||||
|
module.grafter.name=קוטפן עלים
|
||||||
|
module.apiaristArmor.name=שריון כוורן
|
||||||
|
module.hazmat.name=מגן קרינה
|
||||||
|
module.redstoneLaser.name=לייזר רדסטון
|
||||||
|
module.aurameter.name=מד הל
|
||||||
|
module.airtightSeal.name=סתימת אוויר
|
||||||
|
module.citizenJoe.name=שריון האזרח ג'ו
|
||||||
|
module.sonicWeapon.name=נשק על קולי
|
|
@ -7,11 +7,15 @@ import net.minecraft.item.ItemStack
|
||||||
object ElectricAdapter {
|
object ElectricAdapter {
|
||||||
def wrap(stack: ItemStack): ElectricAdapter = {
|
def wrap(stack: ItemStack): ElectricAdapter = {
|
||||||
if (stack == null) return null
|
if (stack == null) return null
|
||||||
stack.getItem match {
|
val i = stack.getItem
|
||||||
case i: MuseElectricItem => new MuseElectricAdapter(stack)
|
if (i.isInstanceOf[MuseElectricItem]) {
|
||||||
case i: IEnergyContainerItem => if (ModCompatability.isCoFHCoreLoaded) new TEElectricAdapter(stack) else null
|
new MuseElectricAdapter(stack)
|
||||||
// case i: IElectricItem => if (ModCompatability.isIndustrialCraftLoaded) new IC2ElectricAdapter(stack) else null
|
} else if (ModCompatability.isCoFHCoreLoaded && i.isInstanceOf[IEnergyContainerItem]) {
|
||||||
case _ => null
|
new TEElectricAdapter(stack)
|
||||||
|
} else if (ModCompatability.isIndustrialCraftLoaded) {
|
||||||
|
null
|
||||||
|
} else {
|
||||||
|
null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +60,9 @@ class MuseElectricAdapter(val stack: ItemStack) extends ElectricAdapter {
|
||||||
|
|
||||||
class TEElectricAdapter(val stack: ItemStack) extends ElectricAdapter {
|
class TEElectricAdapter(val stack: ItemStack) extends ElectricAdapter {
|
||||||
val item = stack.getItem.asInstanceOf[IEnergyContainerItem]
|
val item = stack.getItem.asInstanceOf[IEnergyContainerItem]
|
||||||
import ElectricConversions._
|
|
||||||
|
import net.machinemuse.api.electricity.ElectricConversions._
|
||||||
|
|
||||||
def getCurrentEnergy: Double = museEnergyFromRF(item.getEnergyStored(stack))
|
def getCurrentEnergy: Double = museEnergyFromRF(item.getEnergyStored(stack))
|
||||||
|
|
||||||
def getMaxEnergy: Double = museEnergyFromRF(item.getMaxEnergyStored(stack))
|
def getMaxEnergy: Double = museEnergyFromRF(item.getMaxEnergyStored(stack))
|
||||||
|
|
|
@ -11,6 +11,7 @@ import net.machinemuse.utils.render.MuseRenderer;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.entity.EntityClientPlayerMP;
|
import net.minecraft.client.entity.EntityClientPlayerMP;
|
||||||
import net.minecraft.client.settings.KeyBinding;
|
import net.minecraft.client.settings.KeyBinding;
|
||||||
|
import net.minecraft.util.ChatComponentText;
|
||||||
import org.lwjgl.input.Keyboard;
|
import org.lwjgl.input.Keyboard;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -55,7 +56,7 @@ public class ClickableKeybinding extends ClickableButton {
|
||||||
for (ClickableModule module : boundModules) {
|
for (ClickableModule module : boundModules) {
|
||||||
String valstring = toggleval ? " on" : " off";
|
String valstring = toggleval ? " on" : " off";
|
||||||
if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
|
if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
|
||||||
player.sendChatMessage("Toggled " + module.getModule().getDataName() + valstring);
|
player.addChatMessage(new ChatComponentText("Toggled " + module.getModule().getDataName() + valstring));
|
||||||
}
|
}
|
||||||
MuseItemUtils.toggleModuleForPlayer(player, module.getModule().getDataName(), toggleval);
|
MuseItemUtils.toggleModuleForPlayer(player, module.getModule().getDataName(), toggleval);
|
||||||
MusePacketToggleRequest toggleRequest = new MusePacketToggleRequest(player, module.getModule().getDataName(), toggleval);
|
MusePacketToggleRequest toggleRequest = new MusePacketToggleRequest(player, module.getModule().getDataName(), toggleval);
|
||||||
|
|
|
@ -2,19 +2,23 @@ package net.machinemuse.powersuits.item
|
||||||
|
|
||||||
import cpw.mods.fml.common.Optional
|
import cpw.mods.fml.common.Optional
|
||||||
import cpw.mods.fml.relauncher.{Side, SideOnly}
|
import cpw.mods.fml.relauncher.{Side, SideOnly}
|
||||||
|
import micdoodle8.mods.galacticraft.api.item.IBreathableArmor
|
||||||
|
import micdoodle8.mods.galacticraft.api.item.IBreathableArmor.EnumGearType
|
||||||
import net.machinemuse.api.ModuleManager
|
import net.machinemuse.api.ModuleManager
|
||||||
import net.machinemuse.powersuits.powermodule.misc.ThaumGogglesModule
|
import net.machinemuse.powersuits.powermodule.misc.{AirtightSealModule, ThaumGogglesModule}
|
||||||
import net.machinemuse.utils.render.MuseRenderer
|
import net.machinemuse.utils.render.MuseRenderer
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister
|
import net.minecraft.client.renderer.texture.IIconRegister
|
||||||
import net.minecraft.entity.EntityLivingBase
|
import net.minecraft.entity.EntityLivingBase
|
||||||
|
import net.minecraft.entity.player.EntityPlayer
|
||||||
import net.minecraft.item.ItemStack
|
import net.minecraft.item.ItemStack
|
||||||
import thaumcraft.api.IGoggles
|
import thaumcraft.api.IGoggles
|
||||||
import thaumcraft.api.nodes.IRevealer
|
import thaumcraft.api.nodes.IRevealer
|
||||||
|
|
||||||
@Optional.Interface(iface = "thaumcraft.api.IGoggles", modid = "Thaumcraft", striprefs = true)
|
@Optional.Interface(iface = "thaumcraft.api.IGoggles", modid = "Thaumcraft", striprefs = true)
|
||||||
@Optional.Interface(iface = "thaumcraft.api.nodes.IRevealer", modid = "Thaumcraft", striprefs = true)
|
@Optional.Interface(iface = "thaumcraft.api.nodes.IRevealer", modid = "Thaumcraft", striprefs = true)
|
||||||
|
@Optional.Interface(iface = "micdoodle8.mods.galacticraft.api.item.IBreathableArmor", modid = "GalacticraftCore", striprefs = true)
|
||||||
class ItemPowerArmorHelmet extends ItemPowerArmor(0, 0)
|
class ItemPowerArmorHelmet extends ItemPowerArmor(0, 0)
|
||||||
//with IBreathableArmor
|
with IBreathableArmor
|
||||||
with IGoggles
|
with IGoggles
|
||||||
with IRevealer
|
with IRevealer
|
||||||
{
|
{
|
||||||
|
@ -22,14 +26,6 @@ with IRevealer
|
||||||
|
|
||||||
setUnlocalizedName("powerArmorHelmet")
|
setUnlocalizedName("powerArmorHelmet")
|
||||||
|
|
||||||
//
|
|
||||||
// // IBreathableArmor
|
|
||||||
// def handleGearType(gearType: EnumGearType): Boolean = gearType eq EnumGearType.HELMET
|
|
||||||
//
|
|
||||||
// def canBreathe(helm: ItemStack, player: EntityPlayer, gearType: EnumGearType): Boolean =
|
|
||||||
// ModuleManager.itemHasActiveModule(helm, AirtightSealModule.AIRTIGHT_SEAL_MODULE)
|
|
||||||
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
override def registerIcons(iconRegister: IIconRegister) {
|
override def registerIcons(iconRegister: IIconRegister) {
|
||||||
itemIcon = iconRegister.registerIcon(iconpath)
|
itemIcon = iconRegister.registerIcon(iconpath)
|
||||||
|
@ -40,4 +36,13 @@ with IRevealer
|
||||||
|
|
||||||
override def showNodes(itemstack: ItemStack, player: EntityLivingBase): Boolean =
|
override def showNodes(itemstack: ItemStack, player: EntityLivingBase): Boolean =
|
||||||
ModuleManager.itemHasActiveModule(itemstack, ThaumGogglesModule.MODULE_THAUM_GOGGLES)
|
ModuleManager.itemHasActiveModule(itemstack, ThaumGogglesModule.MODULE_THAUM_GOGGLES)
|
||||||
|
|
||||||
|
@Optional.Method(modid = "GalacticraftCore")
|
||||||
|
override def handleGearType(geartype: EnumGearType): Boolean = {
|
||||||
|
geartype == EnumGearType.HELMET
|
||||||
|
}
|
||||||
|
|
||||||
|
@Optional.Method(modid = "GalacticraftCore")
|
||||||
|
override def canBreathe(helm: ItemStack, player: EntityPlayer, geartype: EnumGearType): Boolean =
|
||||||
|
ModuleManager.itemHasActiveModule(helm, AirtightSealModule.AIRTIGHT_SEAL_MODULE)
|
||||||
}
|
}
|
Loading…
Reference in a new issue