Home · skill · FastSwimPotion

While under water, your movement speed is increased by ?%.

Properties

nature
Status

Referenced by

Raw data
{
  "gfx": {
    "file": "UI/Portraits/Items/Potion/Items_Loot_Potion_PotionMinor_Swim.prefab.png",
    "size": 256,
    "x": 0,
    "y": 0
  },
  "id": "FastSwimPotion",
  "nature": "Status",
  "texts": {
    "desc": "While under water, your movement speed is increased by ::val1::%.",
    "name": "Fast Swim Potion"
  },
  "anim": {},
  "steps": [],
  "flags": [],
  "mastery": [],
  "props": {
    "status": {
      "types": [
        {
          "type": "Buff"
        }
      ]
    }
  },
  "vars": {},
  "script": "function onRegUpdate(dt) {\n\tif( owner.hasStatus(Skill.UnderWater) ) {\n\t\taddStatus(owner, Skill.FastSwimPotionStatus);\n\t} else removeStatus(owner, Skill.FastSwimPotionStatus);\n}\n\nfunction onStatusEnd(s, elapsed) {\n\tremoveStatus(owner, Skill.FastSwimPotionStatus);\n}",
  "_xrefs": [
    {
      "from_sheet": "item",
      "from_id": "FastSwimPotion",
      "via_field": "props"
    },
    {
      "from_sheet": "craft",
      "from_id": "FastSwimPotion",
      "via_field": "item"
    }
  ]
}