tormenta20 0.2.10 → 0.2.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
  SHA256:
3
- metadata.gz: '002039c602c4bf521d62cae9ae64dc386d6985a452ade56a3b70b9a9870424aa'
4
- data.tar.gz: 496dd8a73b8a98db4b1d8b1aaf3c81c72c6bb9d4834222abd74ce3f183d26532
3
+ metadata.gz: 61061e8d442fe601acf2fab0aa5abbde0bb581c3cd392a823a5f098fbe389042
4
+ data.tar.gz: c48702b21f4c252cd259a5d16b8412655a9118c77d37eb6fef4a6103e094051d
5
5
  SHA512:
6
- metadata.gz: f753894a1a238fd8002ce1368c0fb56adeb927ca773d7cd57a43294f35b5ea5562ba0e729f3baa5d4507dbb9060f478900f1f01c45654b7fc7c640113ad74521
7
- data.tar.gz: b541216139c0ab74d40d475d1fca28f173b9f2f2745669771e366880457bea74dbe0f067fa3eb9c0b2c0d8ba2bc7994f1afea13379a44a18c5c7ed78987c9b0f
6
+ metadata.gz: 7555285167b243450af2fca516b0453a763ebecccf5937f9336817212c33f638a0392feb9ac1adebb679b7f737d05e0b80f62b88c9c71593edeae49b05d1e011
7
+ data.tar.gz: b74fb54b7ae483dc574a6cab2845da668d9ddc2c5aed345dcb5379ce1069999c2c289a91f390c1cfdbf5c4da63317bb92d480aca6126266cec1a4fac4eed89d2
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "acrobatico",
3
- "name": "Acobático",
3
+ "name": "Acrobático",
4
4
  "type": "poder_geral",
5
5
  "sub_type": "poder_de_destino",
6
6
  "description": "Você pode usar seu modificador de Destreza em vez de Força em testes de Atletismo. Além disso, terreno difícil não reduz seu deslocamento nem o impede de realizar investidas.",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "surto_heroico",
3
- "name": "Surto Heróico",
3
+ "name": "Surto Heroico",
4
4
  "type": "poder_geral",
5
5
  "sub_type": "poder_de_destino",
6
6
  "description": "Uma vez por rodada, você pode gastar 5 PM para realizar uma ação padrão ou de movimento adicional.",
@@ -260,11 +260,31 @@ module Tormenta20
260
260
  seed_itens
261
261
  end
262
262
 
263
+ PROFICIENCIA_TO_CATEGORY = {
264
+ "simples" => "simples",
265
+ "marcial" => "marciais",
266
+ "marciais" => "marciais",
267
+ "exotica" => "exoticas",
268
+ "exoticas" => "exoticas",
269
+ "fogo" => "fogo"
270
+ }.freeze
271
+
263
272
  def seed_armas
264
273
  import_json_files(
265
274
  "equipamentos/armas",
266
275
  Models::Arma,
267
- %i[id name category price damage damage_type critical range weight properties description]
276
+ %i[id name category price damage damage_type critical range weight properties description],
277
+ transform: lambda { |data|
278
+ data[:category] = PROFICIENCIA_TO_CATEGORY[data.delete(:proficiencia).to_s] if data.key?(:proficiencia)
279
+ data[:price] = data.delete(:preco) if data.key?(:preco)
280
+ data[:damage] = data.delete(:dano) if data.key?(:dano)
281
+ data[:damage_type] = data.delete(:tipo_dano) if data.key?(:tipo_dano)
282
+ data[:critical] = data.delete(:critico) if data.key?(:critico)
283
+ data[:range] = data.delete(:alcance) if data.key?(:alcance)
284
+ data[:weight] = data.delete(:espacos) if data.key?(:espacos)
285
+ data[:properties] = data.delete(:habilidades) if data.key?(:habilidades)
286
+ data
287
+ }
268
288
  )
269
289
  end
270
290
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tormenta20
4
- VERSION = "0.2.10"
4
+ VERSION = "0.2.11"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tormenta20
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - LuanGB