card-mod-assets 0.13.0 → 0.13.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/set/type/mod.rb +4 -1
  3. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b59f6f6f70adc14e63bc31249f6800971fcff3558d05fe332f29ea5ddbdfdbe7
4
- data.tar.gz: b0c4afd0e8497fd44ed495812893dcbb4386f25d2c0898ce1c8f53fc3c4bcc4d
3
+ metadata.gz: e3856a73931c5fb6ba59e0b0bee0f5630794d275517b55c6c3dbea4fc2f35ba0
4
+ data.tar.gz: b4d2d032f676b21b464afa6eaa4adbd090c884eb13288effa59c2100545be2d7
5
5
  SHA512:
6
- metadata.gz: b9a5fc6b02f596d3fc34616d6c9cceca46b6b04077c6687630b27b11a823ff33c1dc15d22bf777a98aa54b0e80426df615e0802eae51567a0f404bbfb864e576
7
- data.tar.gz: 4091054b08b2ddcb3c9c07d4ab973d57fc11c41547b77911ce608636f057370ccda3f62104a74f21d27245a1f204dc73dc0171a52bb5c7cb6d8d4be6d9fc1050
6
+ metadata.gz: 185ba36e7fa5b1321da83eaf77be9d4835e377ae1fe1713910f5dd88a6202222d8aed8125a531bcdfd80cb9110c96b13f94d413a958e33ebb55208967c7d3f39
7
+ data.tar.gz: eefac30edfe41b3f3c1d04c4bc173eafad776e553a5314d8d0f915cd855f6334dd5dc8ade444ed012a8424ba4f15805f30363bdec6d22d5bc021a5ffb62b7c21
data/set/type/mod.rb CHANGED
@@ -13,6 +13,9 @@ def ensure_mod_asset_card asset_type, type_id
13
13
  return if asset_card.no_action?
14
14
  asset_card.save! if asset_card.new?
15
15
 
16
+ # TODO: optimize!
17
+ # this needs to be smarter so that it doesn't do a lot of "re" installing
18
+ # when things are already set up.
16
19
  asset_card.update_items
17
20
  if asset_card.item_cards.present?
18
21
  add_asset asset_type
@@ -27,7 +30,7 @@ end
27
30
 
28
31
  def drop_asset asset_type, asset_card
29
32
  asset_card.update codename: nil
30
- asset_card.delete update_referers: true
33
+ asset_card.delete
31
34
  all_rule(asset_type).drop_item! asset_card
32
35
  end
33
36
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-08-06 00:00:00.000000000 Z
13
+ date: 2021-09-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,42 +18,42 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.103.0
21
+ version: 1.103.4
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.103.0
28
+ version: 1.103.4
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-machines
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.13.0
35
+ version: 0.13.4
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.13.0
42
+ version: 0.13.4
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: card-mod-content
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.13.0
49
+ version: 0.13.4
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.13.0
56
+ version: 0.13.4
57
57
  description: ''
58
58
  email:
59
59
  - info@decko.org