📖
genshin_panel_doc
  • Introduction
  • Install
  • Character
    • Create a Character
    • Supported Character
    • Character Args
  • Weapon
    • Create a Weapon
    • Supported Weapon
  • Artifact
    • Create Artifact
    • Artifact Set Names
    • Artifact Position(Slot) Names
    • Artifact Tag(Stat) Names
  • Attribute
    • Build Attribute
    • Attribute Properties
  • Other
    • Custom Weapon
    • Custom Artifact Effect Rate
Powered by GitBook
On this page

Was this helpful?

  1. Other

Custom Weapon

Example

let args = {
    baseAtk: 500,
    secondary: [
        {
            name: "attackPercentage",
            value: 0.2,
        }
    ]
};
const weapon = new genshin.Weapon("custom", 90, false, 1, args);
PreviousOtherNextCustom Artifact Effect Rate

Last updated 3 years ago

Was this helpful?