Skip to content

Commit

Permalink
Reduce salvage materials by an additional 5%.
Browse files Browse the repository at this point in the history
  • Loading branch information
folknor committed Oct 20, 2017
1 parent 1196f93 commit 85ed211
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions events/ass_controller_marker.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,14 @@ fleet_event = {
}
}
event_target:ass_delete = {
if = {
limit = {
OR = {
has_component = ASS_TYPE_SMALL
has_component = ASS_TYPE_MEDIUM
has_component = ASS_TYPE_LARGE
has_component = ASS_TYPE_XLARGE
}
}
# Remember the values here should be same as in
# common/component_templates/ass_military_station_types.txt
switch = {
trigger = has_component
ASS_TYPE_SMALL = { fleet = { set_variable = { which = "AssRefund" value = 1500 } } }
ASS_TYPE_MEDIUM = { fleet = { set_variable = { which = "AssRefund" value = 5000 } } }
ASS_TYPE_LARGE = { fleet = { set_variable = { which = "AssRefund" value = 9000 } } }
ASS_TYPE_XLARGE = { fleet = { set_variable = { which = "AssRefund" value = 15000 } } }
}
# Remember the values here should be same as in
# common/component_templates/ass_military_station_types.txt
switch = {
trigger = has_component
ASS_TYPE_SMALL = { fleet = { set_variable = { which = "AssRefund" value = 1500 } } }
ASS_TYPE_MEDIUM = { fleet = { set_variable = { which = "AssRefund" value = 5000 } } }
ASS_TYPE_LARGE = { fleet = { set_variable = { which = "AssRefund" value = 9000 } } }
ASS_TYPE_XLARGE = { fleet = { set_variable = { which = "AssRefund" value = 15000 } } }
}
fleet = {
if = { limit = { check_variable = { which = "AssRefund" value > 0 } }
Expand All @@ -110,8 +100,8 @@ fleet_event = {
limit = { owner = { has_technology = "tech_space_defense_station_improvement" } }
multiply_variable = { which = "AssRefund" value = 0.85 }
}
# And another -15% for good measure
multiply_variable = { which = "AssRefund" value = 0.85 }
# And another -20% for good measure, because you cant get it all back
multiply_variable = { which = "AssRefund" value = 0.80 }
}
}
}
Expand Down

0 comments on commit 85ed211

Please sign in to comment.