@blackrobe said in 4DFAF Uploaded:
- Regarding Sera T2 shield Drone: it does work on some units, when you first released it, it shielded every unit and building, including ACU; I see the logic in later versions only shields some; thus my confusion. Might be good to add shield health amount, as you can't tell how strong shield is.
I took a look at how or rather where the information of where the shields health info is coming from. Far as I can tell, this isn't being provided by the shield, but by the units blueprint. Being that our shield drone adds a P-shield to a unit there isn't a blueprint to be drawn from. Maybe there is some way to "hook" in a change for that. Unfortunately , UI modding is not my area of knowledge.
Unless someone can pitch in or offer up some advice on how this can be done?
In the mean time, here is how the shield health is being calculated by the drone currently:
if table.find(bp.Categories ,'EXPERIMENTAL') then
sldHealth = 10000
rChgTime = 120
rChgRate = 100
eCost = 300
elseif table.find(bp.Categories ,'TECH3') then
sldHealth = sldHealth * 0.3
rChgTime = 90
rChgRate = 10
eCost = 25
elseif table.find(bp.Categories ,'TECH2') then
sldHealth = sldHealth * 0.5
rChgTime = 60
rChgRate = 5
eCost = 10
else
sldHealth = sldHealth * 0.75
rChgTime = 30
rChgRate = 2
eCost = 5
end
in many ways, the above figures are not properly balanced. Though the idea was for the shield drone to be a significant material investment and thus I gave it more wiggle room. If you have ideas on how to improve this, I'm open to suggestions.
Resin