Guest User

Untitled

a guest
Jan 13th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. #****************************************************************************
  2. #**
  3. #** File : /cdimage/units/UAB0301/UAB0301_script.lua
  4. #** Author(s): David Tomandl
  5. #**
  6. #** Summary : Aeon Land Factory Tier 3 Script
  7. #**
  8. #** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
  9. #****************************************************************************
  10.  
  11. local TWalkingLandUnit = import('/lua/terranunits.lua').TWalkingLandUnit
  12.  
  13. local UEL0001OLD = UEL0001
  14.  
  15. UEL0001 = Class(UEL0001OLD) {
  16.  
  17. GetHologramUnits = function(self)
  18. local OldHolograms = PrevUnit.GetHologramUnits(self)
  19. local MyHologram = { MyHologramTable = { UEF = { Tech3 = { Land = { WEL0302_HOLOGRAM }, }, }, }, }
  20. return table.merged(MyHologram, OldHolograms)
  21. end,
  22.  
  23. CreateEnhancement = function(self, enh)
  24. UEL0001OLD.CreateEnhancement(self, enh)
  25. local bp = self:GetBlueprint().Enhancements[enh]
  26. if enh =='HeavyAntiMatterCannon' then
  27. if not Buffs['UEFACUdmgMod'] then
  28. BuffBlueprint {
  29. Name = 'UEFACUdmgMod',
  30. DisplayName = 'UEFACUdmgMod',
  31. BuffType = 'ACUBUILDRATE',
  32. Stacks = 'ALWAYS',
  33. Duration = -1,
  34. Affects = {
  35. Damage = {
  36. Add = bp.NewDamage - self:GetBlueprint().Weapon[1].Damage,
  37. Mult = 1.0,
  38. },
  39. MaxRadius = {
  40. Add = bp.NewRange - self:GetBlueprint().Weapon[1].MaxRadius,
  41. Mult = 1.0,
  42. },
  43. MaxRadius = {
  44. Add = bp.NewRange - self:GetBlueprint().Weapon[2].MaxRadius,
  45. Mult = 1.0,
  46. },
  47. },
  48. }
  49. end
  50. Buff.ApplyBuff(self, 'UEFACUdmgMod')
  51. elseif enh =='HeavyAntiMatterCannonRemove' then
  52. if Buff.HasBuff( self, 'UEFACUdmgMod' ) then
  53. Buff.RemoveBuff( self, 'UEFACUdmgMod' )
  54. end
  55. elseif enh == 'Holograms' then
  56. self.ViewHolograms = true
  57. local intelTypes = { Holographics = true, }
  58. local spec = {
  59. Holographics = {
  60. WatchPower = true,
  61. AddToggles = true,
  62. Toggles = { RULEETC_HologramToggle = { StartEnabled = true }, },
  63. EnabledOnTransport = false,
  64. MaintenanceConsumptionPerSecondEnergy = 100,
  65. MaxDistance = 30,
  66. MinDistance = 0.1,
  67.  
  68. HologramGroup = 'MyHologramTable',
  69.  
  70. T3Land = 3,
  71.  
  72. },
  73. }
  74.  
  75. self:AddCustomUnitIntel(intelTypes, spec)
  76. elseif enh == 'HologramsRemove' then
  77. self:RemoveCustomIntel('Holographics')
  78. end
  79. end,
  80. }
  81.  
  82. TypeClass = UEL0001
Add Comment
Please, Sign In to add comment