Jump to content

Freagarach

WFG Programming Team
  • Posts

    1.126
  • Joined

  • Last visited

  • Days Won

    18

Posts posted by Freagarach

  1. On 03/11/2020 at 6:41 AM, badosu said:

    friendly fire would be awesome to restrict abuse

    One can already use that in SVN., just one template change away ;)

    6 hours ago, badosu said:

    Also trampling mechanic

    Is being worked on (D1838).

    6 hours ago, badosu said:

    morale mechanic

    I have that around somewhere.

    3 hours ago, wowgetoffyourcellphone said:

    battalions

    (D2175)

    11 hours ago, ChronA said:

    I'll make the Git repo public

    Looking forward to that! :)

  2. 4 hours ago, wowgetoffyourcellphone said:

    Indeed. I was thinking of some kind of income rate versus/minus expenses display. Similar to Rise of Nations. 

    Interesting idea, but I think that would work best if the resource gathering would go from event-based to continuous production (e.g. lumber camps being semi-large structures being built next to some trees giving a(n) (unlimited) trickle of wood, which is increased with number of assigned slaves and/or amount of wood nearby).

    6 hours ago, Nescio said:

    Rise of Nations had units suffer from attrition damage when in enemy territory (like 1 health per second), unless within range of a friendly supply wagon. It would be nice to have that mechanic in 0 A.D. too. @Freagarach?

    Actually 0 A.D. used to have health decay (rP10034), but this was replaced with the current capture points territory decay when structure capturing was introduced (rP16550).

    TerritoryDecay.js just sends a message (MT_TerritoryDecayChanged) whenever an entity gets out of allied territorium, so you could listen to that in cmpHealth and respond accordingly. That would be fairly slow I guess though.

  3. The main reason there is no official campaign yet is because the underlying infrastructure is not there yet. There is a big patch for that (D11) but it needs review (feel free to do so) and fixes by the author. Once the infrastructure is there my guess is that a simple campaign won't be far off.

  4. 13 hours ago, dpikt said:

    Unfortunately that's a little beyond my understanding of the game code at the moment, but I'll take another crack at it this weekend.

    You can take a look at StatisticsTracker.js -- especially at the difference how e.g. "lootCollected": this.lootCollected and "percentMapExplored": this.GetPercentMapExplored() are obtained -- and at Player.js. Those should contain (nigh) all information you need.

    Feel free to ask questions! (You can also join #0ad-dev on IRC for a faster respons.)

  5. This has been implemented differently in rP24001. Be aware that this breaks many previous templates.

    Old template code:

    Spoiler
    
      <Armour>
        <Hack>1</Hack>
        <Pierce>1</Pierce>
        <Crush>15</Crush>
      </Armour>

     

    New template code:

    Spoiler
    
      <Resistance>
        <Entity>
          <Damage>
            <Hack>1</Hack>
            <Pierce>1</Pierce>
            <Crush>15</Crush>
          </Damage>
        </Entity>
      </Resistance>

    Where <Entity> can be either <Entity> or <Foundation>, where the latter describes the resistances of the foundation of a structure.

    This new schema allows for e.g.

    Spoiler
    
      <Resistance>
        <Entity>
          <Damage>
            <Hack>1</Hack>
            <Pierce>1</Pierce>
            <Crush>15</Crush>
          </Damage>
          <Capture>5</Capture>
        </Entity>
      </Resistance>

    Which means the entity has the well known resistance against damage to their health. But moreover has resistance to capture attacks now. The way capture resistance is processed is similar to that of damage types.

    It is good to note that, after thorough discussion, it has been decided to NOT include directionality (yet). (But that is certainly on my ToDo-list ;) )

    This sets things up for resistances against Status Effects.

    • Like 1
  6. Probably something along the lines of:

    	"modifications": [
    		{ "value": "Attack/<Ranged|Melee|Capture>/Bonuses/<NameOfTheBonus>/Classes", "replace": "Building" },
    		{ "value": "Attack/<Ranged|Melee|Capture>/Bonuses/<NameOfTheBonus>/Multiplier", "multiply": 5 },
    	],

    To add 5x damage against buildings. But then again, one needs to add support for modifying classes in bonuses first (apperently there is already support to change the multiplier (rP22346)).

  7. 6 hours ago, wowgetoffyourcellphone said:

    (can auras affect attack bonuses? @Freagarach?)

    Actually, no :( Even if you'd add it (Attacking.js-helper, "GetAttackEffectsData") you cannot add a new bonus, as far as I know, but you could add a general non-bonus (x1 vs Unit) and modify that with an aura (would mean you cannot alter bonuses with two different auras probably).

    • Thanks 1
  8. 13 hours ago, Nescio said:

    That's the least controversial?

    To me, it is :) (Or perhaps the "other"-folder.)

    On 8/7/2020 at 3:25 PM, Nescio said:

    one file per resource subtype

    But what if one can gather two resources from one object, e.g. fruit and/or wood from a apple tree?

    On 8/7/2020 at 3:25 PM, Nescio said:

    finally, animals inherit from `template_unit.xml`, not from `template_gaia.xml`, and thus ought to be moved to units/animals/

    On 8/7/2020 at 3:25 PM, Nescio said:

    And no, the gaia/ folder is certainly not redundant! (Just poorly named: resources would probably be more appropiate, though that isn't perfect either.)

    It seems we need something of a definition for that folder.

×
×
  • Create New...