Jump to content
  • 0

Question

Posted

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.

6 answers to this question

Recommended Posts

  • 0
Posted

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".

  • 0
Posted
40 minutes ago, Smoot said:

Actually this raises a question. What is True used for?

 

Well, that is not a very clear question, but I will say true is used to say the opposite of false haha

  • 0
Posted
1 hour ago, Smoot said:

Actually this raises a question. What is True used for?

 

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.

  • 0
Posted
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.

×
×
  • Create New...