Skip to content

Conversation

ArturKnopik
Copy link
Contributor

@ArturKnopik ArturKnopik commented Dec 12, 2021

16:06 You see a rainbow shield (Def:30, energy magic level +20, fire magic level +3, healing magic level +10).
It can only be wielded properly by knights of level 100 or higher.
It weighs 69.00 oz.
Strange elemental magic flows over this shield.
specialSkillMlvl
{"magiclevelenergy", ITEM_PARSE_MAGICLEVELENERGY},
{"magiclevelfire", ITEM_PARSE_MAGICLEVELFIRE},
{"magiclevelpoison", ITEM_PARSE_MAGICLEVELPOISON},
{"magiclevelearth", ITEM_PARSE_MAGICLEVELPOISON},
{"magiclevelice", ITEM_PARSE_MAGICLEVELICE},
{"magiclevelholy", ITEM_PARSE_MAGICLEVELHOLY},
{"magicleveldeath", ITEM_PARSE_MAGICLEVELDEATH},
{"magiclevellifedrain", ITEM_PARSE_MAGICLEVELLIFEDRAIN},
{"magiclevelmanadrain", ITEM_PARSE_MAGICLEVELMANADRAIN},
{"magicleveldrown", ITEM_PARSE_MAGICLEVELDROWN},
{"magiclevelphysical", ITEM_PARSE_MAGICLEVELPHYSICAL},
{"magiclevelhealing", ITEM_PARSE_MAGICLEVELHEALING},
{"magiclevelundefined", ITEM_PARSE_MAGICLEVELUNDEFINED},

Pull Request Prelude

  • I have followed [proper The Forgotten Server code styling][code].
  • I have read and understood the [contribution guidelines][cont] before making this PR.
  • I am aware that this PR may be closed if the above-mentioned criteria are not fulfilled.

@Zbizu
Copy link
Contributor

Zbizu commented Dec 12, 2021

I believe that they should also be pushed to lua (in itemType:getAbilities())

also, the variable names could be shortened to just MAGICLEVELELEMENT rather than SPECIALMAGICLEVELELEMENT

@ghost ghost requested review from ranisalt, DSpeichert and nekiro December 12, 2021 18:56
@ArturKnopik ArturKnopik requested a review from a user December 13, 2021 18:22
@ghost ghost added the feature New feature or functionality label Dec 13, 2021
@ArturKnopik ArturKnopik requested a review from a user December 14, 2021 18:18
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and working :)

@ghost ghost merged commit a1775d2 into otland:master Dec 14, 2021
ArturKnopik added a commit to ArturKnopik/forgottenserver that referenced this pull request Dec 18, 2021
> Specialised Magic Levels: items will be able to receive a magic level modifier for specific elements, e.g. "fire magic level +2", which means only fire damage spells are boosted. Possible elements include Fire, Earth, Energy, Ice, Holy, Death and Healing.

https://tibia.fandom.com/wiki/Updates/12.70.10953
ArturKnopik added a commit to ArturKnopik/forgottenserver that referenced this pull request Dec 18, 2021
@ArturKnopik ArturKnopik deleted the specialSkills branch December 18, 2021 18:57
@omarcopires
Copy link
Contributor

This feature ends a task from issue #3758
New types of items modifiers were be implemented: Specialised Magic Levels, Cleave, Magic Shield Capacity, Perfect Shot (aka Range Bonus), Damage Reflection [12.70.10953]

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants