code
stringlengths
1
1.73M
language
stringclasses
1 value
# SorcererSpells - List of D&D Spells[SpellModel] for Sorcerer # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GN...
Ruby
# DruidSpells - List of D&D Spells[SpellModel] for Druid # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GNU Gene...
Ruby
# BardSpells - List of D&D Spells[SpellModel] for Bard # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GNU Genera...
Ruby
# PaladinSpells - List of D&D Spells[SpellModel] for Paladin # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GNU...
Ruby
SpellList.granted_powers_list["Air Domain"] = "Turn or destroy earth creatures as a good cleric turns undead." + "Rebuke, command, or bolster air creatures as an evil cleric rebukes undead." + "Use these abilities a total number of times per day equal to 3 + your Charisma modifier." SpellList.granted_powers_procs...
Ruby
# WizardSpells - List of D&D Spells[SpellModel] for Wizard # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GNU Ge...
Ruby
# Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Fo...
Ruby
# Gnoll - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the...
Ruby
# Drow - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the ...
Ruby
# Tiefling - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of ...
Ruby
# Stone Giant - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms ...
Ruby
# Half-Dragon - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms ...
Ruby
# Aquatic Elf - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms ...
Ruby
# Kobold - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of th...
Ruby
# Hill Giant - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms o...
Ruby
# Wild Elf - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of ...
Ruby
# Troll - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the...
Ruby
# Vampire - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of t...
Ruby
# Orc - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the G...
Ruby
# Gray Elf - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of ...
Ruby
# Aasimar - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of t...
Ruby
# Half-Fiend - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms o...
Ruby
# Frost Giant - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms ...
Ruby
# Wood Elf - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of ...
Ruby
# ClassModel - Model of D&D classes and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the term...
Ruby
# SkillModel - Model of D&D spells and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms...
Ruby
#SPOOT
Ruby
# RaceModel - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of...
Ruby
# SkillModel - Model of D&D skills and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms...
Ruby
# FeatModel - Model of D&D feats and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms o...
Ruby
# Roll - manager for string based dice rolls # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public L...
Ruby
# SpellList - Manager of D&D spells[SpellModel], spell generation and container for related methods # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or m...
Ruby
# ClassList - Manager of D&D Classes[ClassModel] # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GNU General Publ...
Ruby
# FeatList - Manager of D&D Feats[FeatModel] # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public L...
Ruby
# SkillList - Manager of D&D skills[SkillModel], skill generation and container for related methods # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or m...
Ruby
# RaceList - Manager of D&D Races[RaceModel] # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public L...
Ruby
# LanguageList - Manager of D&D Languages[String] # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GNU General Pub...
Ruby
# Skills - List of D&D Skills[SkillModel] # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Lice...
Ruby
# Languages - Manager of D&D Languages[String] # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public...
Ruby
class Name attr_accessor :name, :pre, :post @@tokens = Hash.new(Hash.new(Hash.new([]))) @token_categories = ["General"] @alignment="" def self.load(relative_path="Names") Dir.glob(File.join("#{File.dirname(__FILE__)}", "/*/*.txt")).each do |file| #Dir.glob(File.join(".", "*/*.txt")).each do |file| ...
Ruby
class Background attr_accessor :primary_motivation, :secondary_motivation, :history @@background = Hash.new([]) @result = "" @alignment="" def self.load(relative_path="Backgrounds") Dir.glob(File.join("#{File.dirname(__FILE__)}", "/*.txt")).each do |file| File.open(file, "r") do |file| while(l...
Ruby
require_relative "Character" #require_relative "Lists" temp = ["PHB", "MM1"]#, "mm1","eberron","forgotten realms","frostburn"] temp.each { |book| Dir.glob("./**/"+book+"/*Races/*.rb").each {|file| require file} } temp.each { |book| Dir.glob("./**/"+book+"/*Classes/*.rb").each {|file| require file} } temp.each { ...
Ruby
# Character - Model for D&D characters and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the t...
Ruby
source :rubygems gem "dm-core" gem "sinatra" gem "haml" gem 'thin' gem "rake" gem "omniauth" gem 'mongo_mapper' gem 'omniauth' gem 'omniauth-google-oauth2' gem 'bcrypt-ruby' gem 'omniauth-identity' gem 'rack-flash3', :require => 'rack-flash'
Ruby
require 'sinatra' require 'haml' require 'mongo_mapper' require 'bson' require 'omniauth' require 'omniauth-google-oauth2' require 'omniauth-identity' require 'rack-flash' require 'nokogiri' require_relative "#{File.dirname(__FILE__)}/lib/Character_Generator" require_relative "#{File.dirname(__FILE__)}/lib/monster/mon...
Ruby
set :application, "yoursite.com/sinatra-haml-bootstrap-basic-hero" set :user, "user" set :repository, "git@yourrepo.com:sinatra-haml-bootstrap-hero.git" set :domain, "yoursite.com" set :deploy_to, "~/sites/#{application}"
Ruby
path = File.expand_path("../", __FILE__) require 'rubygems' require 'sinatra' require "#{path}/app" run Sinatra::Application
Ruby
begin require 'vlad' Vlad.load(app: nil, scm: 'git') rescue LoadError # do nada end
Ruby
require_relative "#{File.dirname(__FILE__)}/Resources/Character" Dir.glob(File.join("#{File.dirname(__FILE__)}", "/Resources/Lists", "*.rb")).each do |file| require file end Dir.glob(File.join("#{File.dirname(__FILE__)}", "/Resources/Models", "*.rb")).each do |file| require file end require_relative "#{F...
Ruby
require 'nokogiri' require 'csv' require 'mongo_mapper' class Monster include MongoMapper::Document key :name, String key :full_text, String key :cr, Integer key :type, String key :source, String key :monster_id, String def self.load_sources # Monster.destroy_all if Mons...
Ruby
require 'nokogiri' doc = Nokogiri::Slop(File.read(File.dirname(__FILE__) + "/monster.xml")) doc.monsters.monster.each do |mon| name = mon.at_xpath("name").content cr = mon.challenge_rating.content.to_i type = mon.at_xpath("type").content full_text = mon.full_text.inner_html.strip p full_text end
Ruby
# Dwarf - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the...
Ruby
# Elf - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the G...
Ruby
# Half-Orc - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of ...
Ruby
# Half-Elf - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of ...
Ruby
# Halfling - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of ...
Ruby
# Gnome - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the...
Ruby
# Human - Model of D&D race and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the...
Ruby
# Druid - D&D class model and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the G...
Ruby
# Monk - D&D class model and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GN...
Ruby
# Fighter - D&D class model and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the...
Ruby
# Ranger - D&D class model and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the ...
Ruby
# Cleric - D&D class model and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the ...
Ruby
# Sorcerer - D&D class model and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of th...
Ruby
# Paladin - D&D class model and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the...
Ruby
# Bard - D&D class model and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the GN...
Ruby
# Barbarian - D&D class model and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of t...
Ruby
# Wizard - D&D class model and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the ...
Ruby
# Rogue - D&D class model and container for related information # Copyright (C) 2011 Cody Garrett, Josh Murphy, and Matt Ingram # This file is part of FishTornado D&D Character Generator. # FishTornado D&D Character Generator is free software: you can redistribute it and/or modify # it under the terms of the G...
Ruby
class MountedCombat < FeatModel @bonus_classes = ["Fighter"] def initialize super @title = "Mounted Combat" @description = "Once per round when your mount is hit in combat, you may attempt a Ride check (as a reaction) to negate the hit." + " The hit is negated if your Ride check result is greater...
Ruby
class Toughness < FeatModel @bonus_classes = [] def initialize super @title = "Toughness" @description = "You gain +3 hit points." @page = "PHB??" @link = "http://www.d20srd.org/srd/feats.htm#toughness" end def self.available?(char) return true end def self.is_bonus_feat?(class_t...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class Alertness < FeatModel def initialize super @title = "Alertness" @bonus_classes = [] @description = "+2 Bonus to Listen and Spot checks" @page = "PHB??" @link = "" e...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class Agile < FeatModel def initialize super @title = "Agile" @bonus_classes = [] @description = "+2 Bonus to Balance and Escape Artist checks" @page = "PHB??" @link = "" ...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class Acrobatic < FeatModel def initialize super @title = "Acrobatic" @bonus_classes = [] @description = "+2 Bonus to Jump and Tumble checks" @page = "PHB??" @link = "" e...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class TwoWeaponFighting < FeatModel @bonus_classes = ["Fighter", "Ranger(Melee)"] def initialize super @title = "Two-Weapon Fighting" @description = "You can fight with a weapon ...
Ruby
class Run < FeatModel def initialize super @title = "Run" @description = "When running, you move five times your normal speed (if wearing medium, light, or no armor and carrying no more than a medium load) or four "+ "times your speed (if wearing heavy armor or carrying a heavy load). If you make a ju...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class AnimalAffinity < FeatModel def initialize super @title = "Animal Affinity" @bonus_classes = [] @description = "+2 Bonus to Handle Animal and Ride checks" @page = "PHB??"...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class PowerAttack < FeatModel @bonus_classes = ["Fighter"] def initialize super @title = "Power Attack" @description = "On your action, before making attack rolls for a round, yo...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class Investigator < FeatModel def initialize super @title = "Investigator" @bonus_classes = [] @description = "+2 Bonus on Gather Information and Search checks" @page = "PHB9...
Ruby
require_relative File.join("#{File.dirname(__FILE__)}", "/../Items/Equipment") class SimpleWeaponProficiency < FeatModel def initialize super @title = "Weapon Proficiency (Simple)" @description = "You make attack rolls with simple weapons normally." @page = "PHB 100" @link = "" end def self...
Ruby
class ImprovedUnarmedStrike < FeatModel @bonus_classes = ["Fighter"] def initialize super @title = "Improved Unarmed Strike" @description = "You are considered to be armed even when unarmed. In addition, your unarmed strikes can deal lethal or nonlethal damage, at your option." @page = "PHB??" @...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class Diligent < FeatModel def initialize super @title = "Diligent" @bonus_classes = [] @description = "+2 Bonus on Appraise and Decipher Script checks" @page = "PHB93" @li...
Ruby
require_relative File.join("#{File.dirname(__FILE__)}", "/../Items/Equipment") class LightArmorProficiency < FeatModel def initialize super @title = "Armor Proficiency (Light)" @description = "When you wear armor with which you are proficient, armor check penalty only applies to Balance, Climb, Escape A...
Ruby
class SkillFocus < FeatModel @bonus_classes = [] def initialize super @title = "Skill Focus" @description = "You get a +3 bonus on all checks involving that skill." @page = "PHB??" @link = "http://www.d20srd.org/srd/feats.htm#skillFocus" end def self.available?(char) focuses = char.fe...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class Negotiator < FeatModel def initialize super @title = "Negotiator" @bonus_classes = [] @description = "+2 Bonus on Diplomacy and Sense Motive checks" @page = "PHB98" @...
Ruby
class Track < FeatModel @bonus_classes = [] def initialize super @title = "Track" @description = "To find tracks or to follow them for 1 mile requires a successful Survival check." + " You must make another Survival check every time the tracks become difficult to follow." @page = "PHB??" @li...
Ruby
class BlindFight < FeatModel @bonus_classes = ["Fighter"] def initialize super @title = "Blind Fight" @description = "In melee, every time you miss because of concealment, you can reroll your miss chance percentile roll one time to see if you actually hit.\n\n" + "An invisible attacker gets no a...
Ruby
class CombatReflexes < FeatModel @bonus_classes = ["Fighter"] def initialize super @title = "Combat Reflexes" @description = "You may make a number of additional attacks of opportunity equal to your Dexterity bonus. You may also make attacks of oppurtunity while flat-footed" @page = "PHB??" @lin...
Ruby
class PointBlankShot < FeatModel @bonus_classes = ["Fighter"] def initialize super @title = "Point Blank Shot" @description = "You get a +1 bonus on attack and damage rolls with ranged weapons at ranges of up to 30 feet." @page = "PHB??" @link = "" end def self.available?(char) return !...
Ruby
class ImprovedTurning < FeatModel @bonus_classes = [] def initialize super @title = "Improved Turning" @description = "You turn or rebuke creatures as if you were one level higher than you are in the class that grants you the ability." @page = "PHB??" @link = "http://www.d20srd.org/srd/feats.htm#i...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class MagicalAptitude < FeatModel def initialize super @title = "Magical Aptitude" @bonus_classes = [] @description = "+2 Bonus on Spellcraft and Use Magic Device checks" @pag...
Ruby
class LightningReflexes < FeatModel def initialize super @title = "Lightning Reflexes" @description = "You have exceptional reflexes." @page = "PHB??" @link = "" end def self.available?(char) return !feat_taken(char) end def self.add(char) super(char) char.ref_save["misc"] +=...
Ruby
class ImprovedInitiative < FeatModel @bonus_classes = ["Fighter"] def initialize super @title = "Improved Initiative" @description = "You get a +4 bonus on initiative checks." @page = "PHB??" @link = "http://www.d20srd.org/srd/feats.htm#improvedInitiative" end def self.available?(char) ...
Ruby
class WeaponFinesse < FeatModel @bonus_classes = ["Fighter"] def initialize super @title = "Weapon Finesse" @description = "With a light weapon, rapier, whip, or spiked chain made for a creature of your size category," + " you may use your Dexterity modifier instead of your Strength modifier on a...
Ruby
class WhirlwindAttack < FeatModel @bonus_classes = ["Fighter"] def initialize super @title = "Whirlwind Attack" @description = "When you use the full attack action, you can give up your regular attacks and instead make one melee attack at your full base attack bonus "+ "against each opponent wit...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class BrewPotion < FeatModel @bonus_classes = ["Wizard"] def initialize super @title = "Brew Potion" @description = "You can create a potion of any 3rd-level or lower spell that yo...
Ruby
class Endurance < FeatModel @bonus_classes = [] def initialize super @title = "Endurance" @description = "You gain a +4 bonus on the following checks and saves: Swim checks made to resist nonlethal damage," + " Constitution checks made to continue running, Constitution checks made to avoid nonlet...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class Persuasive < FeatModel def initialize super @title = "Persuasive" @bonus_classes = [] @description = "+2 Bonus on Bluff and Intimidate checks" @page = "PHB98" @link =...
Ruby
class RapidReload < FeatModel @bonus_classes = ["Fighter"] def initialize super @title = "Rapid Reload" @description = "The time required for you to reload your chosen type of crossbow is reduced to a free action (for a hand or light crossbow)" + "or a move action (for a heavy crossbow). Reloading...
Ruby
class EmpowerSpell < FeatModel @bonus_classes = ["Wizard"] def initialize super @title = "Empower Spell" @description = "All variable, numeric effects of an empowered spell are increased by one-half. Saving throws and opposed rolls are not affected, nor are spells without random variables. An empower...
Ruby