@jtff/miztemplate-lib 3.10.7 → 3.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lua/lib/Moose_.lua +8 -15
- package/package.json +1 -1
package/lua/lib/Moose_.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
env.info('*** MOOSE GITHUB Commit Hash ID: 2025-12-
|
|
1
|
+
env.info('*** MOOSE GITHUB Commit Hash ID: 2025-12-30T09:26:48+01:00-a3d77a5a7166c5aee4a2b596a22ec30b19a9dde6 ***')
|
|
2
2
|
if not MOOSE_DEVELOPMENT_FOLDER then
|
|
3
3
|
MOOSE_DEVELOPMENT_FOLDER='Scripts'
|
|
4
4
|
end
|
|
@@ -31415,20 +31415,6 @@ end
|
|
|
31415
31415
|
function UNIT:SetValidateAndRepositionGroundUnits(Enabled)
|
|
31416
31416
|
self.ValidateAndRepositionGroundUnits=Enabled
|
|
31417
31417
|
end
|
|
31418
|
-
function UNIT:GetFuelMassMax()
|
|
31419
|
-
local Desc=self:GetDesc()or{}
|
|
31420
|
-
local massFuelMax=Desc.fuelMassMax or 0
|
|
31421
|
-
local relFuel=math.min(self:GetFuel()or 1.0,1.0)
|
|
31422
|
-
local massFuel=massFuelMax*relFuel
|
|
31423
|
-
return massFuel,massFuelMax
|
|
31424
|
-
end
|
|
31425
|
-
function UNIT:GetCurrentFuelKgs()
|
|
31426
|
-
local fuel,maxfuel=self:GetFuelMassMax()
|
|
31427
|
-
local relfuel=self:GetFuel()
|
|
31428
|
-
local maxfilling=math.max(fuel,maxfuel)
|
|
31429
|
-
local mass=maxfilling*relfuel
|
|
31430
|
-
return mass
|
|
31431
|
-
end
|
|
31432
31418
|
CLIENT={
|
|
31433
31419
|
ClassName="CLIENT",
|
|
31434
31420
|
ClientName=nil,
|
|
@@ -55620,6 +55606,7 @@ for i=1,#self.stock do
|
|
|
55620
55606
|
local item=self.stock[i]
|
|
55621
55607
|
if item.uid==stockitem.uid then
|
|
55622
55608
|
table.remove(self.stock,i)
|
|
55609
|
+
_WAREHOUSEDB.Assets[stockitem.uid]=nil
|
|
55623
55610
|
break
|
|
55624
55611
|
end
|
|
55625
55612
|
end
|
|
@@ -106648,6 +106635,12 @@ end
|
|
|
106648
106635
|
function OPSGROUP:IsOutOfTorpedos()
|
|
106649
106636
|
return self.outofTorpedos
|
|
106650
106637
|
end
|
|
106638
|
+
function OPSGROUP:IsOutOfA2GAmmo()
|
|
106639
|
+
if(self.outofMissilesAG and self.outofBombs and self.outofGuns)or self.outofAmmo then
|
|
106640
|
+
return true
|
|
106641
|
+
end
|
|
106642
|
+
return false
|
|
106643
|
+
end
|
|
106651
106644
|
function OPSGROUP:IsLasing()
|
|
106652
106645
|
return self.spot.On
|
|
106653
106646
|
end
|