Jump to content
  • 0

Adding damage types


Smoot

Question

In the editor_strings.json there is

"Combat": {
    "damagetypes": {
      "0": "Physical",
      "1": "Magic",
      "2": "True"
    },

 

If I add 3, 4 etc here, is there anything else I need to do to create additional damage types? I don't see anything in client_strings, for example.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

You also have to add new values in "Intersect.Enums.DamageType" and to add new "cases" in the "switch (damageType)" of the "Attack" method of "Intersect.Server.Entites.Entity" (near line 1730).

 

I think damage types are only useful if you want to use different damage formulas and/or colors.

So you will probably want to add new values in "Intersect.Server.General.Formulas" and "Intersect.CustomColors.CombatNamespace".

Link to comment
Share on other sites

  • 0
5 minutes ago, Aesthetic said:

 

True damage is just damage calculated by default to ignore defensive stats. By default physical damage is reduced by armor, magic resist lowers magic damage, and true damage will ignore both of those values.

 

Hey an actual answer. Thanks Aesthetic, makes sense.

Link to comment
Share on other sites

×
×
  • Create New...