Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin Streicher NoxMortem

  • Vienna
View GitHub Profile
View NestedTAS.js
on("change:repeating_skillsactionmod remove:repeating_skillsactionmod",function() {
var modifiers = {};
TAS.repeating("skillsactionmod")
.fields('skillsname','modifier','active') //< specifying the fields we care about
.reduce(function(m,r){
if(!(r.skillsaction_name in m.modifiers)){
m.modifiers[r.skillsaction_name] = 0;
}else{
if(r.active === "on"){
m.modifiers[r.skillsaction_name] += r.modifier;
@NoxMortem
NoxMortem / Shadowrun.js
Last active Jul 24, 2016
Shadowrun Roll20 Sheet by Wandler
View Shadowrun.js
// Github:
// By: Wandler, The Apprentice
// Contact:
var Shadowrun = Shadowrun || (function() {
'use strict';
var version = '0.0.1',
lastUpdate = 1427604268,
tableCache = {},