Skip to content

Commit

Permalink
Merge pull request #31 from Yona-TYT/master
Browse files Browse the repository at this point in the history
Additional parameter for some Scenarios
  • Loading branch information
Yona-TYT authored Nov 3, 2024
2 parents c9e3277 + 17f61ed commit 631c72b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pak128.prototype/scenario/new_york/scenario.nut
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function forbid_tools_on_hudson()
}
}

function is_work_allowed_here(pl, tool_id, pos)
function is_work_allowed_here(pl, tool_id, pos, tool)
{
// headquarter only on governors island
if (tool_id == tool_headquarter) {
Expand Down
4 changes: 2 additions & 2 deletions pak128.prototype/scenario/swiss_mountains/scenario.nut
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function get_percentage(pl)
}


function is_work_allowed_here(pl, tool_id, pos)
function is_work_allowed_here(pl, tool_id, pos, tool)
{
local result = null // null is equivalent to 'allowed'
if (tool_id == tool_setslope) result = terra_forming_allowed(pos)
Expand All @@ -456,4 +456,4 @@ function update() // update for older versions
persistent.version = version // change the old version number
}

// END OF FILE
// END OF FILE
2 changes: 1 addition & 1 deletion pak128.prototype/scenario/tramadness/scenario.nut
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function get_result_text(pl)
return ttext("There is still no passenger at Cambridge TOP station.")
}

function is_work_allowed_here(pl, tool_id, pos)
function is_work_allowed_here(pl, tool_id, pos, tool)
{
// no extension of existing stations
if (tool_id == tool_build_station) {
Expand Down

0 comments on commit 631c72b

Please sign in to comment.