From Dark and Darker Wiki

(Automated edit: Reupload of items with correctly calling craftable updates)
(Changing Handcrossbow damagefalloff to display properly. Needs to be fixed in script or in the Widget.)
Tag: Reverted
Line 7,766: Line 7,766:
|isprojectile=true
|isprojectile=true
|initialspeed=40
|initialspeed=40
|damagefalloff={{#widget:Chart|uniqueId=Hand Crossbow|data=[{"x": 0,"y": 1},{"x": 0.034,"y": 1},{"x": 0.038,"y": 1},{"x": 0.043,"y": 0.999},{"x": 0.047,"y": 0.997},{"x": 0.052,"y": 0.995},{"x": 0.056,"y": 0.993},{"x": 0.061,"y": 0.99},{"x": 0.065,"y": 0.987},{"x": 0.069,"y": 0.983},{"x": 0.074,"y": 0.979},{"x": 0.078,"y": 0.975},{"x": 0.083,"y": 0.97},{"x": 0.087,"y": 0.965},{"x": 0.092,"y": 0.96},{"x": 0.096,"y": 0.954},{"x": 0.1,"y": 0.948},{"x": 0.105,"y": 0.942},{"x": 0.109,"y": 0.936},{"x": 0.114,"y": 0.93},{"x": 0.118,"y": 0.923},{"x": 0.123,"y": 0.916},{"x": 0.127,"y": 0.909},{"x": 0.132,"y": 0.902},{"x": 0.136,"y": 0.895},{"x": 0.14,"y": 0.888},{"x": 0.145,"y": 0.881},{"x": 0.149,"y": 0.874},{"x": 0.154,"y": 0.867},{"x": 0.158,"y": 0.86},{"x": 0.163,"y": 0.853},{"x": 0.167,"y": 0.846},{"x": 0.172,"y": 0.839},{"x": 0.176,"y": 0.833},{"x": 0.18,"y": 0.826},{"x": 0.185,"y": 0.82},{"x": 0.189,"y": 0.814},{"x": 0.194,"y": 0.808},{"x": 0.198,"y": 0.803},{"x": 0.203,"y": 0.797},{"x": 0.207,"y": 0.792},{"x": 0.211,"y": 0.787},{"x": 0.216,"y": 0.783},{"x": 0.22,"y": 0.779},{"x": 0.225,"y": 0.775},{"x": 0.229,"y": 0.772},{"x": 0.233,"y": 0.769},{"x": 0.238,"y": 0.767},{"x": 0.242,"y": 0.765},{"x": 0.247,"y": 0.763},{"x": 0.251,"y": 0.762},{"x": 0.251,"y": 0.762},{"x": 0.326,"y": 0.751},{"x": 0.401,"y": 0.74},{"x": 0.477,"y": 0.729},{"x": 0.552,"y": 0.718},{"x": 0.628,"y": 0.708},{"x": 0.703,"y": 0.697},{"x": 0.779,"y": 0.686},{"x": 0.854,"y": 0.675},{"x": 0.93,"y": 0.665},{"x": 1.006,"y": 0.654},{"x": 1.081,"y": 0.644},{"x": 1.157,"y": 0.634},{"x": 1.233,"y": 0.624},{"x": 1.309,"y": 0.614},{"x": 1.385,"y": 0.604},{"x": 1.461,"y": 0.594},{"x": 1.537,"y": 0.585},{"x": 1.613,"y": 0.575},{"x": 1.689,"y": 0.566},{"x": 1.765,"y": 0.557},{"x": 1.841,"y": 0.548},{"x": 1.917,"y": 0.539},{"x": 1.993,"y": 0.531},{"x": 2.07,"y": 0.522},{"x": 2.146,"y": 0.514},{"x": 2.222,"y": 0.506},{"x": 2.298,"y": 0.499},{"x": 2.374,"y": 0.491},{"x": 2.451,"y": 0.484},{"x": 2.527,"y": 0.477},{"x": 2.603,"y": 0.47},{"x": 2.679,"y": 0.464},{"x": 2.756,"y": 0.458},{"x": 2.832,"y": 0.452},{"x": 2.908,"y": 0.446},{"x": 2.984,"y": 0.441},{"x": 3.061,"y": 0.435},{"x": 3.137,"y": 0.431},{"x": 3.213,"y": 0.426},{"x": 3.289,"y": 0.422},{"x": 3.366,"y": 0.418},{"x": 3.442,"y": 0.415},{"x": 3.518,"y": 0.412},{"x": 3.594,"y": 0.409},{"x": 3.67,"y": 0.406},{"x": 3.746,"y": 0.404},{"x": 3.822,"y": 0.402},{"x": 3.898,"y": 0.401},{"x": 3.974,"y": 0.4}]|color=orange}}
|damagefalloff={{#widget:Chart|uniqueId=Hand Crossbow|data=[{"x": 0,"y": 1},{"x": 0.034,"y": 1},{"x": 0.038,"y": 1},{"x": 0.043,"y": 0.999},{"x": 0.047,"y": 0.997},{"x": 0.052,"y": 0.995},{"x": 0.056,"y": 0.993},{"x": 0.061,"y": 0.99},{"x": 0.065,"y": 0.987},{"x": 0.069,"y": 0.983},{"x": 0.074,"y": 0.979},{"x": 0.078,"y": 0.975},{"x": 0.083,"y": 0.97},{"x": 0.087,"y": 0.965},{"x": 0.092,"y": 0.96},{"x": 0.096,"y": 0.954},{"x": 0.1,"y": 0.948},{"x": 0.105,"y": 0.942},{"x": 0.109,"y": 0.936},{"x": 0.114,"y": 0.93},{"x": 0.118,"y": 0.923},{"x": 0.123,"y": 0.916},{"x": 0.127,"y": 0.909},{"x": 0.132,"y": 0.902},{"x": 0.136,"y": 0.895},{"x": 0.14,"y": 0.888},{"x": 0.145,"y": 0.881},{"x": 0.149,"y": 0.874},{"x": 0.154,"y": 0.867},{"x": 0.158,"y": 0.86},{"x": 0.163,"y": 0.853},{"x": 0.167,"y": 0.846},{"x": 0.172,"y": 0.839},{"x": 0.176,"y": 0.833},{"x": 0.18,"y": 0.826},{"x": 0.185,"y": 0.82},{"x": 0.189,"y": 0.814},{"x": 0.194,"y": 0.808},{"x": 0.198,"y": 0.803},{"x": 0.203,"y": 0.797},{"x": 0.207,"y": 0.792},{"x": 0.211,"y": 0.787},{"x": 0.216,"y": 0.783},{"x": 0.22,"y": 0.779},{"x": 0.225,"y": 0.775},{"x": 0.229,"y": 0.772},{"x": 0.233,"y": 0.769},{"x": 0.238,"y": 0.767},{"x": 0.242,"y": 0.765},{"x": 0.247,"y": 0.763},{"x": 0.251,"y": 0.762},{"x": 0.251,"y": 0.762},{"x": 0.326,"y": 0.751},{"x": 0.401,"y": 0.74},{"x": 0.477,"y": 0.729},{"x": 0.552,"y": 0.718},{"x": 0.628,"y": 0.708},{"x": 0.703,"y": 0.697},{"x": 0.779,"y": 0.686},{"x": 0.854,"y": 0.675},{"x": 0.93,"y": 0.665},{"x": 1.006,"y": 0.654},{"x": 1.081,"y": 0.644},{"x": 1.157,"y": 0.634},{"x": 1.233,"y": 0.624},{"x": 1.309,"y": 0.614},{"x": 1.385,"y": 0.604},{"x": 1.461,"y": 0.594},{"x": 1.537,"y": 0.585},{"x": 1.613,"y": 0.575},{"x": 1.689,"y": 0.566},{"x": 1.765,"y": 0.557},{"x": 1.841,"y": 0.548},{"x": 1.917,"y": 0.539},{"x": 1.993,"y": 0.531},{"x": 2.07,"y": 0.522},{"x": 2.146,"y": 0.514},{"x": 2.222,"y": 0.506},{"x": 2.298,"y": 0.499},{"x": 2.374,"y": 0.491},{"x": 2.451,"y": 0.484},{"x": 2.527,"y": 0.477},{"x": 2.603,"y": 0.47},{"x": 2.679,"y": 0.464},{"x": 2.756,"y": 0.458},{"x": 2.832,"y": 0.452},{"x": 2.908,"y": 0.446},{"x": 2.984,"y": 0.441},{"x": 3.061,"y": 0.435},{"x": 3.137,"y": 0.431},{"x": 3.213,"y": 0.426},{"x": 3.289,"y": 0.422},{"x": 3.366,"y": 0.418},{"x": 3.442,"y": 0.415},{"x": 3.518,"y": 0.412},{"x": 3.594,"y": 0.409},{"x": 3.67,"y": 0.406},{"x": 3.746,"y": 0.404},{"x": 3.822,"y": 0.402},{"x": 3.898,"y": 0.401},{"x": 4.0,"y": 0.4}]|color=orange}}
|classes=[[Rogue]],[[Ranger]],[[Bard]]
|classes=[[Rogue]],[[Ranger]],[[Bard]]
|sellprices={{#switch:{{lc:{{{3|}}}}}
|sellprices={{#switch:{{lc:{{{3|}}}}}

Revision as of 03:42, 27 July 2024


Usage

{{Weapon_Data|<variable1>|<variable2>|...}}


Variables

  • <item_name>
    • stats
      • <stat_name>
      • allstats
    • abilities
      • <ability_type>
        • <ability_name>
          • <ability_attribute>
    • types
      • <type>
    • hitbox
      • height
      • width
      • height
    • rarities
    • handtype
    • slottype
    • artifactname
    • artifactpower
    • invslots
    • invwidth
    • invheight
    • hitslow
    • hitslowduration
    • flavortext
    • maxammocount
    • maxcount
    • maxcontentscount
    • reloadtime
    • wearingdelaytime
    • equiptime
    • unequiptime
    • ap
      • <rarity>
    • xp
      • <rarity>
    • gearscore
      • <rarity>
    • sellprices
      • <rarity>
    • initialspeed
    • damagefalloff
    • piercecount
    • classes
    • impactresistance
    • interactiontime
    • interactiontimescaling


Global

All attributes that are shared between all other attributes in the same layer are moved to a global layer

For example, if all |movementmultiplier's under Abilities|Primary| are the same, they will be moved to Abilities|Primary|global

See Example 2 for more information


All

All sub-layers can also call |all for a list of all unique attributes For example,

{{Weapon_Data|all}}

will output a list of all items

For example,

{{Weapon_Data|<itemname>|all}}

will output a list of all attributes of a particular

See example 1 and 6 for more information


Examples

Note, some variables may not be applicable to all item categories. The below examples are for the Arming Sword, which only exists in Weapon_Data. Other item categories, like Misc_Data, may have different variables, and obviously don't have others, like abilities

Example 1

All stats of the Arming Sword

{{Weapon_Data|Arming Sword|stats|all}}

Outputs physical base weapon damage 1,physical base weapon damage 2,physical base weapon damage 3,physical base weapon damage 4,physical base weapon damage 5,physical base weapon damage 6,move speed,allstats


Example 2

All shared attributes for Primary attacks of Arming Sword

{{Weapon_Data|Arming Sword|abilities|Primary|global}}

Outputs


Example 3

Damagefalloff widget of Longbow

{{Weapon_Data|Longbow|damagefalloff}}

Outputs


Example 4

All non-artifact rarities of the Arming Sword

{{Weapon_Data|Arming Sword|rarities}}

Outputs 1,2,3,4,5,6


Example 5

Invslots size image of Arming Sword

{{Weapon_Data|Arming Sword|invslots}}

Outputs 1x3InvSlot.jpg


Example 6

All attributes of primary abilities of Arming Sword

{{Weapon_Data|Arming Sword|abilities|Primary|all}}

Outputs Attack 1,Attack 2,Attack 3,Global