Templating Weapons - HeavyMetalPirate/DiscordFantasyUnlimited GitHub Wiki

Base model file

The base model file for templating weapons is Weapon.java.

Fields

If any field only has an allowed value set, the field will be case-sensitive!

  • id: a string representation of the id of an item. Needs to be unique amongst weapons. Can be alphanumeric.
  • name: the name of the item
  • description: a description of the item
  • iconName: the name of the icon file
  • rarity: rarity indicator; Allowed values are: COMMON,UNCOMMON,RARE,EPIC,LEGENDARY,ARTIFACT
  • type: weapon type; Allowed values are: NONE,SWORD,AXE,DAGGER,POLEARM,GREATSWORD,GREATAXE,BOW,CROSSBOW,STAFF,WAND,SHIELD
  • hand: the hand a character can carry this weapon; Allowed values are: LEFT,RIGHT,BOTH,TWOHANDED
  • minDamage: the minimum amount of damage before combat calculations
  • maxDamage: the maximum amount of damage before combat calculations

Listings

The following listings are required in any case. If a list doesn't contain any value, it can be terminated right away.

  • skillBonuses: A list containing any combat skill bonus; begins with a <CombatSkillBonus> element
    • skill: the combat skill the bonus will be applied to; allowed values are: DODGE,CRITICAL,BLOCK,SPELLPOWER,HEALPOWER
    • bonus: the bonus in % (DODGE,CRITICAL,BLOCK) or raw numbers (SPELLPOWER,HEALPOWER). Nonnegative integer.
  • attributeBonuses: A list containing any attribute bonus; begins with an <AttributeBonus> element
    • attribute: the attribute the bonus will be applied to; allowed values are: STRENGTH,ENDURANCE,DEXTERITY,WISDOM,INTELLIGENCE,DEFENSE,LUCK,ALL
    • bonus: the bonus in raw numbers. Nonnegative integer.
  • secondarySkillBonuses: A list containing any secondary skill bonus; begins with a <SecondarySkillBonus> element
    • skill: the secondary skill the bonus will be applied to; allowed values are: WOODCUTTING,FISHING,MINING,ALCHEMY,ENCHANTING
    • bonus: the bonus in raw numbers. Nonnegative integer.

Example Item

<Weapon>
  <id>1</id>
  <name>Broken Sword</name>
  <description>It has seen better days for sure, but at least it is somewhat pointy and rusty...</description>
  <iconName>brknSwrd.png</iconName>
  <rarity>ARTIFACT</rarity>
  <type>SWORD</type>
  <hand>RIGHT</hand>
  <minDamage>1</minDamage>
  <maxDamage>2</maxDamage>
  <skillBonuses/>
  <attributeBonuses/>
  <secondarySkillBonuses>
    <SecondarySkillBonus>
      <skill>WOODCUTTING</skill>
      <bonus>5</bonus>
    </SecondarySkillBonus>
  </secondarySkillBonuses>
</Weapon>
⚠️ **GitHub.com Fallback** ⚠️