Anonymous

Mod Creation/Essentials: Difference between revisions

From Melvor Idle
Line 369: Line 369:
   gameData.buildPackage((p) => {
   gameData.buildPackage((p) => {
     p.items.add({
     p.items.add({
    id: 'Wooden_Dagger',
      id: 'Wooden_Dagger',
    name: 'Wooden Dagger',
      name: 'Wooden Dagger',
    category: 'Combat',
      category: 'Combat',
    type: 'Weapon',
      type: 'Weapon',
    media: 'wooden-dagger.png',
      media: 'wooden-dagger.png',
    ignoreCompletion: false,
      ignoreCompletion: false,
    obtainFromItemLog: false,
      obtainFromItemLog: false,
    golbinRaidExclusive: false,
      golbinRaidExclusive: false,
    sellsFor: 0,
      sellsFor: 0,
    tier: 'wooden',
      tier: 'wooden',
    validSlots: ['Weapon'],
      validSlots: ['Weapon'],
    occupiesSlots: [],
      occupiesSlots: [],
    equipRequirements: [{
      equipRequirements: [{
      type: 'SkillLevel',
        type: 'SkillLevel',
      skillID: 'melvorD:Attack',
        skillID: 'melvorD:Attack',
      level: 1
        level: 1
    }],
      }],
    equipmentStats: [
      equipmentStats: [
      { key: 'attackSpeed', value: 2200 },
        { key: 'attackSpeed', value: 2200 },
      { key: 'stabAttackBonus', value: 4 },
        { key: 'stabAttackBonus', value: 4 },
      { key: 'slashAttackBonus', value: 1 },
        { key: 'slashAttackBonus', value: 1 },
      { key: 'blockAttackBonus', value: 4 },
        { key: 'blockAttackBonus', value: 4 },
      { key: 'meleeStrengthBonus', value: 1 }
        { key: 'meleeStrengthBonus', value: 1 }
    ],
      ],
    itemType: 'Weapon',
      itemType: 'Weapon',
    attackType: 'melee'
      attackType: 'melee'
    });
   }).add();
   }).add();
}</nowiki>
}</nowiki>
91

edits