Skip to content

Instantly share code, notes, and snippets.

View br3tt's full-sized avatar

Brett Basler br3tt

View GitHub Profile
@br3tt
br3tt / helpers.js
Last active December 5, 2015 16:37
class Helpers {
currentHP(db) { return db.PlayerInfo.CurrHP }
noCurrentHPGain(db) { return db.PlayerInfo.CurrentHPGain == 0.0 }
radiation(db) { return db.PlayerInfo.TotalDamages[5].Value }
aidItems(db) { return db.Inventory['48'] }
radiationMoreThan(rads) {
return db => {
this.radiation(db) > rads;
};