League-of-Foundry-Developers / torch

Simple torch module for Foundry VTT
10 stars 16 forks source link

SWADE Pathfinder lights #57

Open BolieRide opened 10 months ago

BolieRide commented 10 months ago

Could we add the swade pathfinder light sources? They do not seem to be recognized.
I would help if I could figure out of sw-path is different than swade... thanks!

lupestro commented 10 months ago

Although I don't have the module, I believe pathfinder-for-savage-worlds-foundryvtt is a module for the base swade system, just like swade-core-rules and deadlands-core-rules, modules I do have. That's Pinnacle's delivery model.

I haven't done so already because I don't own the books for it or the module and thus can't verify the accuracy of the data in that context. Perhaps somebody can tell me the following, so I can implement this:

BolieRide commented 10 months ago

I will happily look it up, do you want to cut and past from the swade pf code? I am newbie level js person, but will try to help!

BolieRide commented 10 months ago

I believe I found the issue, the pathfinder torch says: "Torch (1 hour, 4" radius)". If I import it, and then change the name to "Torch", removing everything after the word it will work.

lupestro commented 9 months ago

If you can give me the actual names of all the light sources, as delivered with the swade pathfinder module, along with their bright and dim radii and any angles, I can make an "Additional Light Sources" json file you can install through the Torch configuration menu. Tweak the values in it to your heart's content. When you're happy with it and it's doing all you want - you can even adjust some of the colors and animations to be more fitting - that'd be great - I can make it part of the default Torch install.

Vogliadicone commented 7 months ago

Here's a file for the light sources in Savage Pathfinder. They have slightly different names than the ones in SWADE...

{ "swade": { "system": "swade", "topology": "standard", "quantity" : "quantity",

"aliases": {
  "Candle (1 hr, 2\" radius)": "Candle",
  "Torch (1 hour, 4\" radius)": "Torch",
  "Lantern, bullseye (10\" cone)": "Lantern, bullseye",
  "Lantern, hooded (6\" radius)": "Lantern, hooded"
},

"sources": {
  "Candle (1 hr, 2\" radius)": {
    "states": 2,
    "light": [
      {
        "bright": 0.5, "dim": 2, "angle": 360, "color": "#e68805", "alpha": 0.15,
        "animation": { "type": "torch", "speed": 2, "intensity": 4, "reverse": false } 
      }           
    ]
  },
  "Everburning Torch": {
    "states": 2,
    "light": [
      {
        "bright": 2, "dim": 4, "angle": 360, "color": "#e68805", "alpha": 0.15,
        "animation": { "type": "torch", "speed": 2, "intensity": 4, "reverse": false } 
      }               
    ]
  },
  "Lantern, bullseye (10\" cone)": {
    "states": 3,
    "light": [
      {
        "bright": 4, "dim": 10, "angle": 120, "color": "#e68805", "alpha": 0.15,
        "animation": { "type": "torch", "speed": 2, "intensity": 4, "reverse": false }          
      },          
      {
        "bright": 2, "dim": 4, "angle": 180, "color": "#e68805", "alpha": 0.15,
        "animation": { "type": "torch", "speed": 2, "intensity": 4, "reverse": false }          
      }
    ]
  },
  "Lantern, hooded (6\" radius)": {
    "states": 2,
    "light": [
      {
        "bright": 4, "dim": 6, "angle": 360, "color": "#e68805", "alpha": 0.15,
        "animation": { "type": "torch", "speed": 2, "intensity": 4, "reverse": false }
      }
    ]
  },
  "Torch (1 hour, 4\" radius)": {
    "states": 2,
    "light": [
      {
        "bright": 2, "dim": 4, "angle": 360, "color": "#e68805", "alpha": 0.15,
        "animation": { "type": "torch", "speed": 2, "intensity": 5, "reverse": false } 
      } 
    ]
  },
  "Sunrod": {
    "states": 2,
    "light": [
      {
        "bright": 6, "dim": 12, "angle": 360, "color": "#e9c40c", "alpha": 0.15,
        "animation": { "type": "sunburst", "speed": 1, "intensity": 3, "reverse": false } 
      } 
    ]
  },
  "Lamp, Small (3\" radius)": {
    "states": 2,
    "light": [
      {
        "bright": 2, "dim": 3, "angle": 360, "color": "#e9c40c", "alpha": 0.15,
        "animation": { "type": "torch", "speed": 1, "intensity": 3, "reverse": false } 
      } 
    ]
  },
  "Light / Darkness": {
    "light": [
      {
        "bright": 3, "dim": 4, "angle": 360, "color": "#e9c40c", "alpha": 0.15,
        "animation": { "type": "torch", "speed": 1, "intensity": 3, "reverse": false } 
      },          
      {
        "bright": 3, "dim": 10, "angle": 120, "color": "#e68805", "alpha": 0.15,
        "animation": { "type": "torch", "speed": 2, "intensity": 4, "reverse": false }          
      }                   
    ]
  },
  "Lantern of Revealing": {
    "light": [
      {
        "bright": 1, "dim": 5, "angle": 360, "color": "#a80092", "alpha": 0.05,
        "animation": { "type": "starlight", "speed": 1, "intensity": 3, "reverse": false }                       
}    

}
}