mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-09 15:10:27 +00:00
Correctly show ANT capacitor on zoning (#504)
* Correctly show ANT capacitor on zoning * Remove log * Move vehicle shields / ntu capacitor packets to HandleSetCurrentAvatar
This commit is contained in:
parent
fa7342264e
commit
88b194fde2
2 changed files with 23 additions and 9 deletions
|
|
@ -209,6 +209,14 @@ class Vehicle(private val vehicleDef : VehicleDefinition) extends AmenityOwner
|
|||
NtuCapacitor
|
||||
}
|
||||
|
||||
def NtuCapacitorScaled : Int = {
|
||||
if(Definition.MaxNtuCapacitor > 0) {
|
||||
scala.math.ceil((NtuCapacitor.toFloat / Definition.MaxNtuCapacitor.toFloat) * 10).toInt
|
||||
} else {
|
||||
0
|
||||
}
|
||||
}
|
||||
|
||||
def Capacitor : Int = capacitor
|
||||
|
||||
def Capacitor_=(value: Int) : Int = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue