|
88 | 88 | "type": "effect_on_condition", |
89 | 89 | "id": "EOC_SMARTPHONE_RECOVERY_BASIC", |
90 | 90 | "effect": [ |
91 | | - { "u_assign_activity": "ACT_GENERIC_EOC", "duration": "15 minutes" }, |
| 91 | + { |
| 92 | + "u_assign_activity": "ACT_PHONE_RECOVERY_BASIC", |
| 93 | + "//": "15 min + 5 minute for each smartphone if more than 1", |
| 94 | + "duration": { "math": [ "time('15 m') + ( (u_item_count('smart_phone_locked') - 1 ) * time('5 m') )" ] } |
| 95 | + } |
| 96 | + ] |
| 97 | + }, |
| 98 | + { |
| 99 | + "type": "effect_on_condition", |
| 100 | + "id": "EOC_SMARTPHONE_RECOVERY_BASIC_2", |
| 101 | + "effect": [ |
92 | 102 | { |
93 | 103 | "u_run_inv_eocs": "all", |
94 | 104 | "search_data": [ { "id": "smart_phone_locked" } ], |
|
116 | 126 | "condition": { |
117 | 127 | "and": [ |
118 | 128 | { "u_has_item": "software_hacking" }, |
119 | | - { "u_has_items": { "item": "laptop", "charges": 10 } }, |
| 129 | + { "u_has_items": { "item": "laptop", "charges": 20 } }, |
120 | 130 | { "math": [ "u_skill('computer') >= 4" ] } |
121 | 131 | ] |
122 | 132 | }, |
123 | 133 | "effect": [ |
124 | | - { "u_assign_activity": "ACT_GENERIC_EOC", "duration": "60 minutes" }, |
| 134 | + { |
| 135 | + "u_assign_activity": "ACT_PHONE_RECOVERY_ADVANCED", |
| 136 | + "//": "90 min + 15 minute for each smartphone if more than 1", |
| 137 | + "duration": { "math": [ "time('90 m') + ( (u_item_count('smart_phone_locked') - 1 ) * time('15 m') )" ] } |
| 138 | + } |
| 139 | + ] |
| 140 | + }, |
| 141 | + { |
| 142 | + "type": "effect_on_condition", |
| 143 | + "id": "EOC_SMARTPHONE_RECOVERY_ADVANCED_2", |
| 144 | + "effect": [ |
125 | 145 | { |
126 | 146 | "u_run_inv_eocs": "all", |
127 | 147 | "search_data": [ { "id": "smart_phone_locked" } ], |
|
135 | 155 | { |
136 | 156 | "u_run_inv_eocs": "random", |
137 | 157 | "search_data": [ { "id": "laptop" } ], |
138 | | - "true_eocs": [ { "id": "EOC_CONSUME_POWER", "effect": [ { "math": [ "n_val('power') -= 100" ] } ] } ] |
| 158 | + "true_eocs": [ { "id": "EOC_CONSUME_POWER", "effect": [ { "math": [ "n_val('power') -= 20" ] } ] } ] |
139 | 159 | }, |
140 | 160 | { |
141 | 161 | "if": { "math": [ "_amount_of_smartphones_recovered == 1" ] }, |
|
0 commit comments