code
stringlengths
1
1.73M
language
stringclasses
1 value
#!/usr/bin/ruby # # Author:: xbrlware@bitstat.com # # Copyright:: 2009, 2010 bitstat (http://www.bitstat.com). All Rights Reserved. # # License:: Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy...
Ruby
#!/usr/bin/ruby # # Author:: xbrlware@bitstat.com # # Copyright:: 2009, 2010 bitstat (http://www.bitstat.com). All Rights Reserved. # # License:: Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy...
Ruby
# This patch is to fix a bug in Ruby 1.8.x CGI::unescapeHTML # Till we upgrade to Ruby 1.9, we will use this patch. Ruby 1.9 handles it properly. # Other alternative is using htmlentities - http://htmlentities.rubyforge.org/ # # Bug explanation, # CGI::unescapeHTML("Equity in Earnings of") returns "Equity in Earni...
Ruby
#!/usr/bin/ruby # # Author:: xbrlware@bitstat.com # # Copyright:: 2009, 2010 bitstat (http://www.bitstat.com). All Rights Reserved. # # License:: Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy...
Ruby
#!/usr/bin/ruby require 'dl'; wid = 91080 space = 2; dl = DL::dlopen('/System/Library/Frameworks/ApplicationServices.framework/ApplicationServices') print "#{dl}\n" _CGSDefaultConnection = dl.sym("_CGSDefaultConnection", 'I'); print "#{_CGSDefaultConnection}\n" foo = dl.sym("CGSMoveWorkspaceWindowList", 'IIiII');...
Ruby
#!/usr/bin/ruby require 'dl'; dl = DL::dlopen('/System/Library/Frameworks/ApplicationServices.framework/ApplicationServices') con = dl.sym("_CGSDefaultConnection", 'I').call() ARGV.map! {|wid| Integer(wid)} r,rs = dl.sym("CGSGetWindowWorkspace", 'IIIi').call(con[0], ARGV.shift, 0) dl.sym("CGSMoveWorkspaceWindowList", '...
Ruby
# Require any additional compass plugins here. # Set this to the root of your project when deployed: http_path = "/" css_dir = "theme/css" sass_dir = "theme/scss" images_dir = "images" javascripts_dir = "js" # You can select your preferred output style here (can be overridden via the command line): output_style = :co...
Ruby
# Copyright 2008-2009 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Ruby
#!/usr/bin/env ruby class ExampleRemoteLibrary def count_items_in_directory(path) Dir.entries(path).find_all{|i| not i.match('^\.')}.length end def strings_should_be_equal(str1, str2) puts "Comparing '#{str1}' to '#{str2}'" if str1 != str2 raise RuntimeError, "Given strings are not equal" ...
Ruby
class RaceList $phb = ["Human","Elf","Half-Elf","Halfling","Gnome","Half-Orc","Dwarf"] $mm1 = ["Drow","Orc","Troll","Lizardfolk", "Hill Giant", "Frost Giant", "Cloud Giant", "Fire Giant","Stone Giant", "Storm Giant", "Doppleganger","Eladrin","Gnoll", "Half-Dragon", "Half-Fiend","Kobold","Medusa", "Ogre", "Ogre ...
Ruby
# Dwarf - 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 of t...
Ruby
# Human - 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 of t...
Ruby
# Rogue - 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 of t...
Ruby
# ClassModel - 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
SPOOT
Ruby
# RaceModel - 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
# 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
# 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
# ClassList - 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
# 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 - 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 o...
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
puts "spoot"*5000000
Ruby
require_relative "SkillList" require_relative "../Models/SkillModel" class Skills def initialize SkillList.load_skills( [["Appraise","int"], ["Balance","dex",true], ["Bluff","cha"], ["Climb","str",true,], ["Concentration","con"], ["Craft","int"], ["Decipher Script","int"], ["Diplomacy"...
Ruby
require_relative "LanguageList" class Languages def initialize LanguageList.load_langs( ["Abyssal", "Aquan", "Auran", "Celestial", "Common", "Draconic", "Druidic", "Dwarven", "Elven", "Giant", "Gnome", "Goblin", "Gnoll", "Halfling", "Ignan", "Infernal", "Orc", ...
Ruby
class RaceList @@RaceList=Hash.new def RaceList return @@RaceList end def self.push(race) @@RaceList[race.to_s] = race end def self.list return @@RaceList end end class ClassList @@list=Hash.new def list return @@list end def self.push(classs) @@list[classs.to_s] = classs end ...
Ruby
class CharacterGen2 source_selector = {php_races[] => "php", mm1[] => "mm1", mm2[] => "mm2", mm3[] => "mm3"} php_races[] = ["Human", "Elf", "Dwarf", "Halfing", "Half-Elf", "Half-Orc"][] forgotten_realms_races[] = ["Fey'ri", "Air Genasi", "Water Genasi", "Earth Genasi", "Water Genasi", "Tiefling", "Aasimar", "Svi...
Ruby
require_relative "Character" require_relative "Lists" temp = ["PHB"]#, "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} } 4.times do |i| ...
Ruby
# Character - 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
require_relative "RaceList" temp = ["phb", "mm1","eberron","forgotten realms","frostburn"] occurance = Hash.new list = RaceList.new books.each { |book| Dir.glob("./**/"+book+"/*.rb").each {|file| require file} } (1..50).each do |i| race = list.get_race(temp) if race[1] race_name = race[1] + " " + race[0...
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
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
# 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
class Leadership < FeatModel @bonus_classes = [] def initialize super @title = "Leadership" @bonus_classes = [] @description = "Having this feat enables the character to attract loyal companions and devoted followers, subordinates who assist her. " @page = "PHB??" @link = "http://www.d20srd.org/...
Ruby
#require "FeatList" # require 'pathname' # require Pathname(__FILE__).ascend{|d| h=d+'FeatList.rb'; break h if h.file?} class DeftHands < FeatModel def initialize super @title = "Deft Hands" @bonus_classes = [] @description = "+2 Bonus on Sleight of Hand and Use Rope checks" @page = "PHB93" ...
Ruby
class CombatCasting < FeatModel def initialize super @title = "Combat Casting" @description = "You get a +4 bonus on Concentration checks made to cast a spell or use a spell-like ability while on the defensive or while you are grappling or pinned." @page = "PHB??" @link = "" end def self.ava...
Ruby
# RangerSpells - List of D&D Spells[SpellModel] for Ranger # 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 G...
Ruby