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 +4 -4
- data/db/tormenta20.sqlite3 +0 -0
- data/src/json/poderes/poderes_gerais/poderes_de_destino/acrobatico.json +1 -1
- data/src/json/poderes/poderes_gerais/poderes_de_destino/surto_heroico.json +1 -1
- data/src/ruby/tormenta20/seeder.rb +21 -1
- data/src/ruby/tormenta20/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61061e8d442fe601acf2fab0aa5abbde0bb581c3cd392a823a5f098fbe389042
|
|
4
|
+
data.tar.gz: c48702b21f4c252cd259a5d16b8412655a9118c77d37eb6fef4a6103e094051d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7555285167b243450af2fca516b0453a763ebecccf5937f9336817212c33f638a0392feb9ac1adebb679b7f737d05e0b80f62b88c9c71593edeae49b05d1e011
|
|
7
|
+
data.tar.gz: b74fb54b7ae483dc574a6cab2845da668d9ddc2c5aed345dcb5379ce1069999c2c289a91f390c1cfdbf5c4da63317bb92d480aca6126266cec1a4fac4eed89d2
|
data/db/tormenta20.sqlite3
CHANGED
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "acrobatico",
|
|
3
|
-
"name": "
|
|
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.",
|
|
@@ -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
|
|