Opened 10 years ago
Last modified 8 years ago
#2936 closed enhancement
Relative Templates — at Version 8
Reported by: | scythetwirler | Owned by: | |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 20 |
Component: | Core engine | Keywords: | patch |
Cc: | Patch: |
Description (last modified by )
Currently, we [could] have templates for units such as
Generic War Dog
<Armour> <Hack>1</Hack> <Pierce>1</Pierce> <Crush>1</Crush> </Armour>
Ultra-Super Powered War Dog
<Armour> <Hack>11</Hack> <Pierce>8</Pierce> <Crush>9</Crush> </Armour>
It'd be a lot easier to make slight deviations if we had relative templates that perform an operation upon the stats of the parent. That is:
Ultra-Super Powered War Dog
<Armour> <Hack>+10</Hack> <Pierce>+7</Pierce> <Crush>+8</Crush> </Armour>
In the case that we need to change the stats of the entire class of units, we would have to only change the parent, but not every template that deviates.
Supporting the basic operations (+, -, x, ÷) would help greatly imo.
Also, files
- tools/templatesanalyzer/unitTables.py
- tools/entity/Entity.pm
will need to be updated.
Change History (11)
comment:1 by , 10 years ago
Description: | modified (diff) |
---|
comment:2 by , 10 years ago
Description: | modified (diff) |
---|
comment:3 by , 10 years ago
follow-up: 5 comment:4 by , 9 years ago
Wasn't it already possible to use <Add> and <Multiply>? (Dunno for sure)
comment:5 by , 9 years ago
Replying to niektb:
Wasn't it already possible to use <Add> and <Multiply>? (Dunno for sure)
I've seen this in Auras but I'm not sure whether it's possible in templates.
by , 9 years ago
Attachment: | relativetemplates.patch added |
---|
leper's patch with scythetwirler's fill-in-the-blanks.
comment:6 by , 9 years ago
Keywords: | review patch added |
---|---|
Milestone: | Backlog → Alpha 18 |
comment:7 by , 9 years ago
TODO: Update tools/templatesanalyzer/unitTables.py tools/entity/Entity.pm
by , 9 years ago
Attachment: | relativetemplates-0adbalance.patch added |
---|
comment:8 by , 9 years ago
Description: | modified (diff) |
---|
by , 9 years ago
Attachment: | TemplateAnalyzerUpdate.patch added |
---|
Should work but needs testing with patch (tested with current templates only)
#2620 is somewhat related.