|
@@ -217,15 +217,19 @@ end
|
|
|
|
|
|
if $ARGS[0] = 'qrepair':
|
|
if $ARGS[0] = 'qrepair':
|
|
*clr
|
|
*clr
|
|
- if rand (1, 100) < 30:
|
|
|
|
|
|
+ minut += 30
|
|
|
|
+ temp_rand = rand(0, 99)
|
|
|
|
+ if temp_rand < pcs_sewng / 4:
|
|
mc_inventory['sewing_fabric'] -= 1
|
|
mc_inventory['sewing_fabric'] -= 1
|
|
- minut += 30
|
|
|
|
dynamic $ARGS[2] + '_h[<<ARGS[3]>>] += 30'
|
|
dynamic $ARGS[2] + '_h[<<ARGS[3]>>] += 30'
|
|
|
|
+ elseif temp_rand < pcs_sewng / 2:
|
|
|
|
+ mc_inventory['sewing_fabric'] -= 1
|
|
|
|
+ dynamic $ARGS[2] + '_h[<<ARGS[3]>>] += 15'
|
|
else
|
|
else
|
|
mc_inventory['sewing_fabric'] += 3
|
|
mc_inventory['sewing_fabric'] += 3
|
|
- minut += 30
|
|
|
|
dynamic $ARGS[2] + '[<<ARGS[3]>>] = 0'
|
|
dynamic $ARGS[2] + '[<<ARGS[3]>>] = 0'
|
|
end
|
|
end
|
|
|
|
+ killvar 'temp_rand'
|
|
gt 'clothing', 'clothing_list', '<<$ward_list_store>>'
|
|
gt 'clothing', 'clothing_list', '<<$ward_list_store>>'
|
|
end
|
|
end
|
|
|
|
|