View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000979 | Spring engine | General | public | 2008-07-13 15:25 | 2008-10-04 23:59 |
| Reporter | det | Assigned To | |||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | closed | Resolution | fixed | ||
| Product Version | 0.76b1+svn | ||||
| Fixed in Version | 0.76b1+svn | ||||
| Summary | 0000979: [PATCH] New modrules tags to let {repair,reclaim,capture} cost energy | ||||
| Description | 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. 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. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Checked infolog.txt for Errors | |||||
|
|
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. |
|
|
shouldn't those values be available to LuaUI/LuaRules somewhere? |
|
|
wasn't this committed? |
|
|
It was commited in http://trac.springhq.org/changeset/6188 I don't think I have the ability to close this ticket. |
| 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 |