Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S18: add super to game overriding methods #11263

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/engine/game/g_system18/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -624,13 +624,13 @@ def revenue_str(route)
end

def extra_revenue(entity, routes)
return unless respond_to?("map_#{map_name}_extra_revenue")
return super unless respond_to?("map_#{map_name}_extra_revenue")

send("map_#{map_name}_extra_revenue", entity, routes)
end

def submit_revenue_str(routes, show_subsidy)
return unless respond_to?("map_#{map_name}_submit_revenue_str")
return super unless respond_to?("map_#{map_name}_submit_revenue_str")

send("map_#{map_name}_submit_revenue_str", routes, show_subsidy)
end
Expand Down Expand Up @@ -670,7 +670,7 @@ def removable_icon_action_str
end

def status_str(corporation)
return unless respond_to?("map_#{map_name}_status_str")
return super unless respond_to?("map_#{map_name}_status_str")

send("map_#{map_name}_status_str", corporation)
end
Expand All @@ -688,7 +688,7 @@ def pre_lay_tile_action(action, entity, tile_lay)
end

def place_home_token(corporation)
return unless respond_to?("map_#{map_name}_place_home_token")
return super unless respond_to?("map_#{map_name}_place_home_token")

send("map_#{map_name}_place_home_token", corporation)
end
Expand Down
Loading