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 +4 -4
- data/lib/pfrpg_core/filters/skill_focus_mod.rb +2 -2
- data/lib/pfrpg_core/skills.rb +4 -4
- data/lib/pfrpg_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47d4e1f12d4abe5792e8ff23da8a48b6a0127ae4
|
4
|
+
data.tar.gz: d2203c0660bd235a7d355791aef110dda8020383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/pfrpg_core/skills.rb
CHANGED
@@ -3,9 +3,9 @@ require 'pfrpg_skills'
|
|
3
3
|
module PfrpgCore
|
4
4
|
class PrettySkill
|
5
5
|
include PfrpgCore::Filterable
|
6
|
-
|
7
|
-
|
8
|
-
|
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)
|
data/lib/pfrpg_core/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: core
|
14
14
|
email:
|