added silos and air pads on z6 and on home3; undid temp lattice benefits and temp vehicle damage

This commit is contained in:
FateJH 2018-05-16 20:35:33 -04:00
parent e9aac5514a
commit e368c8b5be
4 changed files with 39 additions and 4 deletions

View file

@ -524,6 +524,8 @@ object GlobalDefinitions {
val medical_terminal = new MedicalTerminalDefinition(529)
val pad_landing = new RepairRearmSiloDefinition(719)
val repair_silo = new RepairRearmSiloDefinition(729)
val spawn_pad = new VehicleSpawnPadDefinition

View file

@ -12,7 +12,15 @@ import net.psforever.packet.game.ItemTransactionMessage
* Has both proximity-based operation and direct access purchasing power.
*/
class RepairRearmSiloDefinition(objectId : Int) extends EquipmentTerminalDefinition(objectId) with ProximityDefinition {
Name = "repair_silo"
Name = if(objectId == 719) {
"pad_landing"
}
else if(objectId == 729) {
"repair_silo"
}
else {
throw new IllegalArgumentException("repair re-arm terminal must be either object id 719 or 729")
}
private val buyFunc : (Player, ItemTransactionMessage)=>Terminal.Exchange = EquipmentTerminalDefinition.Buy(Map.empty, Map.empty, Map.empty)