card-mod-machines 0.11.7 → 0.13.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,22 +0,0 @@
1
- module ClassMethods
2
- def reset_script_machine
3
- Auth.as_bot do
4
- card = Card[:all, :script, :machine_output]
5
- if card
6
- card.update_columns trash: true
7
- card.expire
8
- Card::Virtual.where(right_id: MachineCacheID).delete_all
9
- end
10
- end
11
- end
12
-
13
- def reset_all_machines
14
- Auth.as_bot do
15
- Card.search(right: { codename: "machine_output" }).each do |card|
16
- card.update_columns trash: true
17
- card.expire
18
- end
19
- Card::Virtual.where(right_id: MachineCacheID).delete_all
20
- end
21
- end
22
- end