Skip to content

Commit

Permalink
Merge pull request #25 from Yona-TYT/master
Browse files Browse the repository at this point in the history
Update Version and Add auto get name in postBuild in CHP 5
  • Loading branch information
Yona-TYT authored Oct 10, 2024
2 parents 12a5ec0 + cf2f841 commit 4049db7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
34 changes: 23 additions & 11 deletions pak128.prototype/scenario/tutorial/class/class_chapter_05.nut
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,8 @@ class tutorial.chapter_05 extends basic_chapter
label_del = [{a = coord(73,12), b = coord(77,12)}, {a = coord(78,35), b = coord(78,40)}]

//Step 4 =====================================================================================
st_name = "PostOffice"
obj_list1 = [
{c = coord(99,45), name = "PostOffice", good = good_alias.mail},
{c = coord(96,37), name = "PostOffice", good = good_alias.mail},
{c = coord(98,27), name = "PostOffice", good = good_alias.mail},
{c = coord(86,27), name = "PostOffice", good = good_alias.mail},
{c = coord(81,32), name = "PostOffice", good = good_alias.mail},
{c = coord(76,30), name = "PostOffice", good = good_alias.mail},
{c = coord(88,31), name = "PostOffice", good = good_alias.mail},
{c = coord(90,37), name = "PostOffice", good = good_alias.mail}
]
st_name = ""
obj_list1 = []
//Para el Camion
veh2_obj = "RVg_Post_Truck_1"
c_dep2 = coord(98,33) // depot
Expand Down Expand Up @@ -121,6 +112,27 @@ class tutorial.chapter_05 extends basic_chapter
d2_cnr = get_dep_cov_nr(ch5_cov_lim2.a,ch5_cov_lim2.b)
d3_cnr = get_dep_cov_nr(ch5_cov_lim3.a,ch5_cov_lim3.b)

//Step 4 =====================================================================================
// Get extension_postoffice Name -----------------------------------
local siz = coord(1,1) //siz = null for all build siz
local desc = building_desc_x.station_extension
local freight = good_alias.mail
local wt = wt_all
st_name = get_build_name(siz, desc, freight, wt)
//-------------------------------------------------------------------
obj_list1 = [
{c = coord(99,45), name = "PostOffice", good = good_alias.mail},
{c = coord(96,37), name = "PostOffice", good = good_alias.mail},
{c = coord(98,27), name = "PostOffice", good = good_alias.mail},
{c = coord(86,27), name = "PostOffice", good = good_alias.mail},
{c = coord(81,32), name = "PostOffice", good = good_alias.mail},
{c = coord(76,30), name = "PostOffice", good = good_alias.mail},
{c = coord(88,31), name = "PostOffice", good = good_alias.mail},
{c = coord(90,37), name = "PostOffice", good = good_alias.mail}
]

//===============================================================================================

local list = fab_list
for(local j = 0; j<list.len(); j++){
local t = my_tile(list[j].c)
Expand Down
2 changes: 1 addition & 1 deletion pak128.prototype/scenario/tutorial/scenario.nut
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Can NOT be used in network game !
*/
const version = 1660
const version = 1670
map.file = "tutorial128.sve"
scenario_name <- "Tutorial Scenario"
scenario.short_description = scenario_name
Expand Down

0 comments on commit 4049db7

Please sign in to comment.