pfrpg_core 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7230bb7e6b619c3e3b3538803d8ee82702a0fdb6
4
- data.tar.gz: cf8269824b88b85f76adaa8c92f787417ad42df4
3
+ metadata.gz: 47d4e1f12d4abe5792e8ff23da8a48b6a0127ae4
4
+ data.tar.gz: d2203c0660bd235a7d355791aef110dda8020383
5
5
  SHA512:
6
- metadata.gz: 69d5f7dabe6d63e9cd06a2215da2055b4dbd137d253c42595413a5ae4c557b0a03517615bcce737aa7457ad13ff7168197d13352f17f2df7b5f99f5a4f819521
7
- data.tar.gz: dafa421d558055c87dd5bb463382150ab97b78289d5fdcc360062f7274794cc2cd1bcc688b2ad0cf644e8f2b24c0ea2ccee3454821ac51bf62262b1631a1ad62
6
+ metadata.gz: 0622c3f12f302ce3b6a57246ee7af37bafe8b7d595bd4f5097f458e595efa8fe023f551a8445e49f8c9e681d34a215a4d4a4d4f2eebada1998eaf0efde002f29
7
+ data.tar.gz: e3f5a474c64da3cfe8cad8d6efcd4b6665234e549a3509446a69527c2b1e6ad20b950fbb8029793dca4f588644360bda85bea44862d42f44a0e3565cd4a4bb9d
@@ -10,9 +10,9 @@ module PfrpgCore
10
10
  prof_feats = character.feats.select { |x| x.name == 'Skill Focus' }
11
11
  skills = []
12
12
  prof_feats.each do |f|
13
- skills << f.feat_special
13
+ skills << f.special.downcase if f.special
14
14
  end
15
- if skills.include? skill.name
15
+ if skills.include? skill.name.downcase
16
16
  modify_skill_for_skill_focus(skill)
17
17
  end
18
18
  end
@@ -3,9 +3,9 @@ require 'pfrpg_skills'
3
3
  module PfrpgCore
4
4
  class PrettySkill
5
5
  include PfrpgCore::Filterable
6
- attr_reader :name, :class_skill, :stat_bonus, :ac_penalty,
7
- :misc_bonus, :total_bonus, :trained_rank, :attribute,
8
- :filters, :filter_str
6
+ attr_accessor :name, :class_skill, :stat_bonus, :ac_penalty,
7
+ :misc_bonus, :total_bonus, :trained_rank, :attribute,
8
+ :filters, :filter_str
9
9
 
10
10
  def initialize(skill, character, skill_filters)
11
11
  @class_skill = is_class_skill?(skill, character)
@@ -19,10 +19,10 @@ module PfrpgCore
19
19
  @stat_bonus = calculate_attribute_bonus(skill, character)
20
20
  @misc_bonus = calculate_misc_bonus(skill, character)
21
21
  @attribute = skill[:skill].attribute
22
- @total_bonus = total_bonuses
23
22
  @filters = skill_filters
24
23
  @filter_str = []
25
24
  apply_filters
25
+ @total_bonus = total_bonuses
26
26
  end
27
27
 
28
28
  def misc_bonus=(misc)
@@ -1,3 +1,3 @@
1
1
  module PfrpgCore
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pfrpg_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan OMara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-29 00:00:00.000000000 Z
11
+ date: 2015-06-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: core
14
14
  email: