View Issue Details

IDProjectCategoryView StatusLast Update
0000979Spring engineGeneralpublic2008-10-04 23:59
Reporterdet Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Version0.76b1+svn 
Fixed in Version0.76b1+svn 
Summary0000979: [PATCH] New modrules tags to let {repair,reclaim,capture} cost energy
DescriptionThis patch adds the following new tags to modrules.{lua,tdf}

repair.energyCostFactor: Used to determine the energy cost used to repair a unit. Defaults to 0.0, which is backwards compatible behavior.

capture.energyCostFactor: Used to determine the energy cost used to capture a unit. Defaults to 0.0, which is backwards compatible behavior.

reclaim.unitEnergyCostFactor: Used to determine the energy cost used to reclaim a live or under construction unit. Defaults to 0.0, which is backwards compatible behaviour.

reclaim.featureEnergyCostFactor: Used to determine the energy cost used to reclaim a feature. Defaults to 0.0, which is backwards compatible behavior.
TagsNo tags attached.
Attached Files
energy_costs.patch (Attachment missing)
energy_costs2.diff (Attachment missing)
Checked infolog.txt for Errors

Activities

det

2008-07-16 08:44

reporter   ~0002421

Added more options to patch, don't apply energy_costs.patch, apply energy_costs2.diff instead.

The full changelog now reads as follows:

This patch adds the following new tags to modrules.{lua,tdf}

repair.energyCostFactor: Used to determine the energy cost used to repair a unit. Defaults to 0.0, which is backwards compatible behavior.

capture.energyCostFactor: Used to determine the energy cost used to capture a unit. Defaults to 0.0, which is backwards compatible behavior.

resurrect.energyCostFactor: Used to determine the energy cost used to resurrect a unit. Defaults to 0.5, which is backwards compatible behavior.

reclaim.unitEnergyCostFactor: Used to determine the energy cost used to reclaim a live or under construction unit. Defaults to 0.0, which is backwards compatible behaviour.

reclaim.featureEnergyCostFactor: Used to determine the energy cost used to reclaim a feature. Defaults to 0.0, which is backwards compatible behavior.

reclaim.unitMethod: Used to determine the method for reclaiming live units. 0 = Revert to nano-frame and do gradual reclaim. 1 = Old method of subtracting HP. Defaults to 1, which is backwards compatible behaviour.

reclaim.unitEfficiency: Used to determine how much metal you get back for reclaiming units (not features, corpses). Defaults to 1.0, which is backwards compatible behaviour.

reclaim.allowEnemies: Whether or not you are allowed to reclaim a living enemy unit. Defaults to true, which is backwards compatible behaviour.

reclaim.allowAllies: Whether or not you are allowed to reclaim a living ally unit. Defaults to true, which is backwards compatible behaviour.

imbaczek

2008-07-16 23:13

reporter   ~0002422

shouldn't those values be available to LuaUI/LuaRules somewhere?

imbaczek

2008-10-04 22:41

reporter   ~0002678

wasn't this committed?

det

2008-10-04 22:50

reporter   ~0002679

It was commited in http://trac.springhq.org/changeset/6188
I don't think I have the ability to close this ticket.

Issue History

Date Modified Username Field Change
2008-07-13 15:25 det New Issue
2008-07-13 15:26 det File Added: energy_costs.patch
2008-07-16 08:33 det File Added: energy_costs2.diff
2008-07-16 08:44 det Note Added: 0002421
2008-07-16 23:13 imbaczek Note Added: 0002422
2008-10-04 21:29 tvo Summary New modrules tags to let {repair,reclaim,capture} cost energy => [PATCH] New modrules tags to let {repair,reclaim,capture} cost energy
2008-10-04 22:41 imbaczek Note Added: 0002678
2008-10-04 22:50 det Note Added: 0002679
2008-10-04 23:59 imbaczek Status new => closed
2008-10-04 23:59 imbaczek Resolution open => fixed
2008-10-04 23:59 imbaczek Fixed in Version => 0.76b1+svn