pfrpg_core 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47d4e1f12d4abe5792e8ff23da8a48b6a0127ae4
4
- data.tar.gz: d2203c0660bd235a7d355791aef110dda8020383
3
+ metadata.gz: 56532030a6a1c5cb08a34028793da379b539e7d6
4
+ data.tar.gz: d2b26071a4387ea11e75bd3ad5ebc29c32885092
5
5
  SHA512:
6
- metadata.gz: 0622c3f12f302ce3b6a57246ee7af37bafe8b7d595bd4f5097f458e595efa8fe023f551a8445e49f8c9e681d34a215a4d4a4d4f2eebada1998eaf0efde002f29
7
- data.tar.gz: e3f5a474c64da3cfe8cad8d6efcd4b6665234e549a3509446a69527c2b1e6ad20b950fbb8029793dca4f588644360bda85bea44862d42f44a0e3565cd4a4bb9d
6
+ metadata.gz: 822c0968f86ec03b87b2075e7f752a7387abec5ca6d2c383c595e413ee9a23ff94c65c675576cda07926780789690876f8a61c0136031be7eaa4640cd5d4a73d
7
+ data.tar.gz: 59a49995e936a540867619c328c83f0666d5b820814acede2092f0d6ec2b0adccbae58f995a3a37466a3705177756a172ea36c3b72cd7c7c31f362e92c2fe03c
@@ -5,7 +5,7 @@ module PfrpgCore
5
5
  attr_accessor :weapon_name, :range, :damage, :weapon_type,
6
6
  :base_bonus, :weapon_bonus, :weight_class, :critical_range,
7
7
  :critical_dmg, :size, :weapon, :other_bonus, :filter_str,
8
- :strength_bonus, :bab, :macros, :masterwork
8
+ :strength_bonus, :bab, :macros, :masterwork, :damage_type
9
9
 
10
10
  def initialize(args)
11
11
  @weapon_name = args[:weapon_name]
@@ -24,6 +24,7 @@ module PfrpgCore
24
24
  @weapon = args[:weapon]
25
25
  @macros = args[:macros]
26
26
  @masterwork = args[:masterwork]
27
+ @damage_type = args[:damage_type]
27
28
  @other_bonus = 0 # things like weapon spec, training, etc
28
29
  apply_filters
29
30
  end
@@ -54,6 +55,7 @@ module PfrpgCore
54
55
  :weapon_bonus => @weapon_bonus,
55
56
  :strength_bonus => @strength_bonus,
56
57
  :other_bonus => @other_bonus,
58
+ :damage_type => @damage_type,
57
59
  :attack_bonus => attack_bonus,
58
60
  :filters => filter_str,
59
61
  :macros => @macros.map { |m| m.as_json }
@@ -73,6 +73,7 @@ module PfrpgCore
73
73
  :misc => misc_json,
74
74
  :skills => @skills,
75
75
  :spells => @spells,
76
+ :spellbooks => @spellbooks,
76
77
  :inventory => @inventory
77
78
  }
78
79
  p[:avatar] = AvatarURL.new(@avatar) if @avatar
@@ -102,6 +102,14 @@ module PfrpgCore
102
102
  (@class_features.find { |x| x.type == 'NatureBond' && x.ability_name == 'Animal Companion' }) != nil
103
103
  end
104
104
 
105
+ def plugin_skills
106
+ skills.skills.map { |x| { name: x.name,
107
+ attribute: x.attribute.upcase,
108
+ rank: x.trained_rank,
109
+ bonus: x.total_bonus }
110
+ }
111
+ end
112
+
105
113
  def misc_json
106
114
  {
107
115
  :initiative => initiative,
@@ -116,7 +124,8 @@ module PfrpgCore
116
124
  :level_string => level_string,
117
125
  :has_familiar => gets_familiar?,
118
126
  :has_companion => gets_companion?,
119
- :temporary => @character.temp_values
127
+ :temporary => @character.temp_values,
128
+ :plugin_skills => plugin_skills
120
129
  }
121
130
  end
122
131
  end
@@ -30,6 +30,7 @@ module PfrpgCore
30
30
  :masterwork => w.masterwork,
31
31
  :range => w.range,
32
32
  :weight_class => w.weight_class,
33
+ :damage_type => w.dmg_type,
33
34
  :damage => w.damage,
34
35
  :weapon_type => w.weapon_type,
35
36
  :critical_range => w.critical_range,
@@ -48,4 +49,4 @@ module PfrpgCore
48
49
  end
49
50
  end
50
51
  end
51
- end
52
+ end
@@ -1,3 +1,3 @@
1
1
  module PfrpgCore
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
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.10
4
+ version: 0.1.11
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-06-29 00:00:00.000000000 Z
11
+ date: 2015-07-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: core
14
14
  email: