Skip to content

Commit

Permalink
Merge branch 'develop' into OrdersLuaAnnotations
Browse files Browse the repository at this point in the history
  • Loading branch information
clyfordv authored Nov 27, 2024
2 parents 3cd76fe + 11a9f7c commit 23c6f7b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion changelog/snippets/fix.6436.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- (#6436, #6480) Prevent the logging of an unecessary warning when certain units make landfall.
- (#6436, #6480, #6552) Prevent the logging of an unecessary warning when certain units make landfall.
4 changes: 2 additions & 2 deletions lua/sim/Unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3729,8 +3729,8 @@ Unit = ClassUnit(moho.unit_methods, IntelComponent, VeterancyComponent, DebugUni
local effectTypeGroups = bpTable.Effects

if not effectTypeGroups or (effectTypeGroups and (table.empty(effectTypeGroups))) then
-- warning isn't needed if this layer's table is used for Footfall or Contrails without terrain effects
if not bpTable.Footfall and not bpTable.Contrails then
-- warning isn't needed if this layer's table is used for Footfall or Contrails or Treads without terrain movement effects
if not bpTable.Footfall and not bpTable.Contrails and not bpTable.Treads then
WARN('*No movement effect groups defined for unit ', repr(self.UnitId), ', Effect groups with bone lists must be defined to play movement effects. Add these to the Display.MovementEffects.', layer, '.Effects table in unit blueprint.')
end
return false
Expand Down
15 changes: 2 additions & 13 deletions units/URL0208/URL0208_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,5 @@
local CConstructionUnit = import("/lua/cybranunits.lua").CConstructionUnit

---@class URL0208 : CConstructionUnit
URL0208 = ClassUnit(CConstructionUnit) {
Treads = {
ScrollTreads = true,
BoneName = 'URL0208',
TreadMarks = 'tank_treads_albedo',
TreadMarksSizeX = 0.65,
TreadMarksSizeZ = 0.4,
TreadMarksInterval = 0.3,
TreadOffset = { 0, 0, 0 },
},
}

TypeClass = URL0208
URL0208 = ClassUnit(CConstructionUnit) {}
TypeClass = URL0208
4 changes: 2 additions & 2 deletions units/XEL0306/XEL0306_unit.bp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ UnitBlueprint{
{
BoneName = "XEL0306",
TreadMarks = "tank_treads_albedo",
TreadMarksInterval = 0.6,
TreadMarksInterval = 0.4,
TreadMarksSizeX = 1.3,
TreadMarksSizeZ = 1,
TreadMarksSizeZ = 1.12,
TreadOffset = { 0, 0, 0 },
},
},
Expand Down

0 comments on commit 23c6f7b

Please sign in to comment.