Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Add blueprint fields to adjust shield assistance costs #6519

Open
lL1l1 opened this issue Nov 7, 2024 · 0 comments
Open

[Feature]: Add blueprint fields to adjust shield assistance costs #6519

lL1l1 opened this issue Nov 7, 2024 · 0 comments
Labels
area: sim Area that is affected by the Simulation of the Game area: unit-blueprint related to issues in unit blueprints (*_unit.bp) type: enhancement

Comments

@lL1l1
Copy link
Contributor

lL1l1 commented Nov 7, 2024

Issue

Currently Cybran ED5 has poor stats to make shield assistance not quickly drain resources. For example the buildtime is around 4.3x higher than it needs to be: #2703
This is because
Regen = RegenRate * BP / RegenAssistMult
Cost/s = BP * BT / (Cost * 0.75 * RegenAssistMult)
That Cost is actually RepairCost/RegenAssistMult which is why we can fix it in lua.

if self:IsUnitState('Repairing') and focus.isFinishedUnit then -- also applies to shield assisting

Changing RegenAssistMult changes the cost per second and regen per buildpower simultaneously, so using it is not possible.

Expected Solution

Add one or multiple blueprint fields that adjust the cost and regeneration in a clear and independent way. The fields would be used during blueprint loading to calculate the RegenAssistMult and anything needed for the repair cost formula used for the shield. An example set of fields would be ShieldMassCostPerHP, ShieldEnergyCostPerHP, and ShieldBuildTimePerHP.

A difficulty is that the new calculated repair cost would apply for the repair of a unit's HP and its shield's HP simultaneously, so there would need to be repair cost calculation based on whether the unit, shield, or both are being repaired at the moment, or else repairing a health-damaged shield unit could cost an incredible amount.

Another objective would be populating the shield blueprints with the new values set to whatever they calculate to with the current regen, cost, and RegenAssistMult stats.

Usage

These blueprint values are critical to being able to balance the shield assistance mechanic.

@lL1l1 lL1l1 added type: enhancement area: sim Area that is affected by the Simulation of the Game area: unit-blueprint related to issues in unit blueprints (*_unit.bp) labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: sim Area that is affected by the Simulation of the Game area: unit-blueprint related to issues in unit blueprints (*_unit.bp) type: enhancement
Projects
None yet
Development

No branches or pull requests

1 participant