Jump to content
  • 0
Sign in to follow this  
Smoot

Adding damage types

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.

Share this post


Link to post
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".

Share this post


Link to post
Share on other sites
  • 0

I figured there must be some code change. I'll take a look in those locations and see what happens.

 

Thanks

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites
  • 0
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...