pfrpg_core 0.1.5 → 0.1.6

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: 2073072c026fd511cbb6fd081542c68f0cb6250e
4
- data.tar.gz: c3b98128de2a84d01c8a94f8f2413465a8454830
3
+ metadata.gz: b896cbfb1969af6749f9b6e61d6d5df237c42b9d
4
+ data.tar.gz: 121370686bde5673d186111d3dea6f6d9eba9ccf
5
5
  SHA512:
6
- metadata.gz: f8e4cc37881b4bfb192b2a73bf67feb69227d571cc4a72885ecca94516c2c54d2aa87d25c874645bfb81624d6372875c06a8c05b8a243ffa14a9969fff7d5450
7
- data.tar.gz: a6ef21857174a2afd1b61e72a0db0617c1206b1a3cd7181a87725e230955185d3406c6206eb33f64721b955f28ff6d7ac9e91837861dce7009bb9f88a845d533
6
+ metadata.gz: a5e95d55cae5d19d28398a3961bd8f2d66428d7ff8bd430dc443ed9e9699afd328e17512173df2e052f98f560bc03fcae7556327b42395d98b8864b677874d55
7
+ data.tar.gz: 3b85e8ed12a562b030ead797f95fa992ef7cb27874b43d9b558c401be81453d12a540e75976131eaeb5cadcb2f747d9cb2a8ce290f619d48167e60db80b78838
@@ -94,6 +94,14 @@ module PfrpgCore
94
94
  return (max_caster_level + ek_level) || 0
95
95
  end
96
96
 
97
+ def gets_familiar?
98
+ (@class_features.find { |x| x.type == 'ArcaneBond' && x.ability_name == 'Familiar' }) != nil
99
+ end
100
+
101
+ def gets_companion?
102
+ (@class_features.find { |x| x.type == 'NatureBond' && x.ability_name == 'Animal Companion' }) != nil
103
+ end
104
+
97
105
  def misc_json
98
106
  {
99
107
  :initiative => initiative,
@@ -106,6 +114,8 @@ module PfrpgCore
106
114
  :total_level => @total_level,
107
115
  :size => size,
108
116
  :level_string => level_string,
117
+ :has_familiar => gets_familiar?,
118
+ :has_companion => gets_companion?,
109
119
  :temporary => @character.temp_values
110
120
  }
111
121
  end
@@ -1,3 +1,3 @@
1
1
  module PfrpgCore
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan OMara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-26 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: core
14
14
  email:
@@ -17,6 +17,9 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - LICENSE
21
+ - Rakefile
22
+ - lib/pfrpg_core.rb
20
23
  - lib/pfrpg_core/attack.rb
21
24
  - lib/pfrpg_core/attributes.rb
22
25
  - lib/pfrpg_core/avatar_url.rb
@@ -26,12 +29,12 @@ files:
26
29
  - lib/pfrpg_core/class_feature.rb
27
30
  - lib/pfrpg_core/combat.rb
28
31
  - lib/pfrpg_core/demographics.rb
32
+ - lib/pfrpg_core/derived.rb
29
33
  - lib/pfrpg_core/derived/combat_bonuses.rb
30
34
  - lib/pfrpg_core/derived/defense.rb
31
35
  - lib/pfrpg_core/derived/magic.rb
32
36
  - lib/pfrpg_core/derived/misc.rb
33
37
  - lib/pfrpg_core/derived/offense.rb
34
- - lib/pfrpg_core/derived.rb
35
38
  - lib/pfrpg_core/effect_processor.rb
36
39
  - lib/pfrpg_core/effect_totaler.rb
37
40
  - lib/pfrpg_core/equipment_totaler.rb
@@ -72,9 +75,6 @@ files:
72
75
  - lib/pfrpg_core/spells_per_level.rb
73
76
  - lib/pfrpg_core/version.rb
74
77
  - lib/pfrpg_core/weapon_training_calculator.rb
75
- - lib/pfrpg_core.rb
76
- - LICENSE
77
- - Rakefile
78
78
  - test/alignment_test.rb
79
79
  - test/attributes_test.rb
80
80
  - test/bonus_test.rb
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  requirements: []
106
106
  rubyforge_project:
107
- rubygems_version: 2.0.14
107
+ rubygems_version: 2.4.5
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: PFRPG core