code stringlengths 1 1.73M | language stringclasses 1
value |
|---|---|
# Troglodyte - 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 |
# Fire 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 |
# Cloud 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 |
# Ogre Mage - 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 |
# Ogre - 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 |
# Half-Celestial - 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 ter... | 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 |
# Hobgoblin - 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-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 |
# Doppleganger - 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 |
# 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 |
# Rakshasa - 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 |
require_relative "#{File.dirname(__FILE__)}/Character_Generator"
print "Number of characters to generate: "
number_of_characters = gets.chomp
print "Character level: "
char_level = gets.chomp
if (char_level.to_i > 1)
print "Number of classes: "
num_classes = gets.chomp
else
num_classes = 1
end
=begin
... | Ruby |
class ClassModel
attr_accessor :good_save,:bad_save,:good_bab,:mid_bab,:bad_bab
@@hd = "1d4"
def self.Class_skills
Class_skills
end
def self.Skill_mul
2
end
def self.apply(character)
character.classes.push(self.new)
end
def self.available?(character)
return true
end
def self.clas... | Ruby |
#require_relative "./Books/PHB/Races/RaceList"
#require_relative "./Books/PHB/Races/ClassList"
require_relative "Lists"
class Character
#attr_accessor :str, :dex, :con, :int, :wis, :cha,
attr_accessor :stats, :skill_points, :HP, :speed, :ability_mods, :ac_list, :fort_save, :will_save, :ref_save, :spell_resist... | 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 "#{Fil... | Ruby |
require 'prawn'
module OutputFormat
def OutputFormat.get_file_name(character,ext)
num = Dir.glob(File.join("#{File.dirname(__FILE__)}", "/Characters", character.name.to_s + "*." + ext)).collect {|x|
File.basename(x).match(/\d+/).to_s.to_i
}.sort.last
"#{File.dirname(__FILE__)}/Characters/" + ... | 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 |
#require "FeatList"
# require 'pathname'
# require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?}
class Deceitful < FeatModel
def initialize
super
@title = "Deceitful"
@bonus_classes = []
@description = "+2 Bonus on Disguise and Forgery checks"
@page = "PHB93"
@link = "... | Ruby |
#require "FeatList"
# require 'pathname'
# require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?}
class SelfSufficient < FeatModel
def initialize
super
@title = "Self-Sufficient"
@bonus_classes = []
@description = "+2 Bonus on Heal and Survival checks"
@page = "PHB100"
... | Ruby |
class CombatExpertise < FeatModel
@bonus_classes = ["Fighter"]
def initialize
super
@title = "Combat Expertise"
@description = "When you use the attack action or the full attack action in melee, you can take a penalty of as much as -5 on your attack roll and add
the same number (+5 or less) as ... | Ruby |
#require "FeatList"
# require 'pathname'
# require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?}
class NimbleFingers < FeatModel
def initialize
super
@title = "Nimble Fingers"
@bonus_classes = []
@description = "+2 Bonus on Disable Device and Open Lock checks"
@page = "PH... | Ruby |
class EschewMaterials < FeatModel
@bonus_classes = []
def initialize
super
@title = "Eschew Materials"
@description = "You can cast any spell that has a material component costing 1 gp or less without needing that component. (The casting of the spell still provokes attacks of opportunity as normal.) If ... | Ruby |
class QuickDraw < FeatModel
@bonus_classes = ["Fighter"]
def initialize
super
@title = "Quick Draw"
@description = "You swiftly draw a weapon"
@page = "PHB??"
@link = ""
end
def self.available?(char)
return !feat_taken(char) && char.BAB >= 1
end
def self.is_bonus_feat?(class_ty... | Ruby |
class Dodge < FeatModel
@bonus_classes = ["Fighter"]
def initialize
super
@title = "Dodge"
@description = "During your action, you designate an opponent and receive a +1 dodge bonus to Armor Class against attacks from that opponent. You can select a new opponent on any action.
A condition that ma... | Ruby |
class GreatFortitude < FeatModel
@bonus_classes = []
def initialize
super
@title = "Great Fortitude"
@description = "You get a +2 bonus on all Fortitude saving throws."
@page = "PHB??"
@link = "http://www.d20srd.org/srd/feats.htm#greatFortitude"
end
def self.available?(char)
return !fe... | Ruby |
class ImprovedCritical < FeatModel
@bonus_classes = ["Fighter"]
def initialize
super
@title = "Improved Critical"
@description = "When using the weapon you selected, your threat range is doubled."
@page = "PHB??"
@link = "http://www.d20srd.org/srd/feats.htm#improvedCritical"
end
def self.a... | Ruby |
class IronWill < FeatModel
def initialize
super
@title = "Iron Will"
@description = "You have exceptional willpower."
@page = "PHB??"
@link = ""
end
def self.available?(char)
return !feat_taken(char)
end
def self.add(char)
super(char)
char.will_save["misc"] += 2
end
de... | Ruby |
#require "FeatList"
# require 'pathname'
# require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?}
class Stealthy < FeatModel
def initialize
super
@title = "Stealthy"
@bonus_classes = []
@description = "+2 Bonus on Hide and Move Silently checks"
@page = "PHB100"
@link = ... | Ruby |
class WeaponFocus < FeatModel
@bonus_classes = ["Fighter"]
def initialize
super
@title = "Weapon Focus"
@description = "You gain a +1 bonus on all attack rolls you make using the selected weapon."
@page = "PHB??"
@link = "http://www.d20srd.org/srd/feats.htm#weaponFocus"
end
def self.availa... | Ruby |
#require "FeatList"
# require 'pathname'
# require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?}
class Athletic < FeatModel
def initialize
super
@title = "Athletic"
@bonus_classes = []
@description = "+2 Bonus on Climb and Swim checks"
@page = "PHB 89"
@link = ""
end... | Ruby |
class ImprovedShieldBash < FeatModel
@bonus_classes = ["Fighter"]
def initialize
super
@title = "Improved Shield Bash"
@description = "When you perform a shield bash, you may still apply the shield's shield bonus to your AC."
@page = "PHB??"
@link = "http://www.d20srd.org/srd/feats.htm#improvedS... | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.