-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #17
- Loading branch information
Showing
15 changed files
with
347 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/*------------------------------------------------------------------------------ | ||
* 한국 버스 세트(Korean Bus Set) | ||
* https://github.com/KoreanGRF/KoreanBusSet | ||
------------------------------------------------------------------------------*/ | ||
|
||
// Seoul | ||
spriteset(set_HYUNDAI_COUNTY_LONG_SEOUL_purchase, "./src/hyundai/COUNTY_LONG/COUNTY_LONG.png") { | ||
tmpl_purchase_detail(0, 0, 31, 13, -14, -6) | ||
} | ||
spriteset(set_HYUNDAI_COUNTY_LONG_SEOUL, "./src/hyundai/COUNTY_LONG/COUNTY_LONG.png") { | ||
tmpl_HYUNDAI_COUNTY(60, 0) | ||
} | ||
|
||
// Gyeonggi | ||
spriteset(set_HYUNDAI_COUNTY_LONG_GYEONGGI_purchase, "./src/hyundai/COUNTY_LONG/COUNTY_LONG.png") { | ||
tmpl_purchase_detail(0, 30, 31, 13, -14, -6) | ||
} | ||
spriteset(set_HYUNDAI_COUNTY_LONG_GYEONGGI, "./src/hyundai/COUNTY_LONG/COUNTY_LONG.png") { | ||
tmpl_HYUNDAI_COUNTY(60, 30) | ||
} | ||
|
||
// Erud Beige | ||
spriteset(set_HYUNDAI_COUNTY_LONG_ERUDBEIGE_purchase, "./src/hyundai/COUNTY_LONG/COUNTY_LONG.png") { | ||
tmpl_purchase_detail(0, 90, 31, 13, -14, -6) | ||
} | ||
spriteset(set_HYUNDAI_COUNTY_LONG_ERUDBEIGE, "./src/hyundai/COUNTY_LONG/COUNTY_LONG.png") { | ||
tmpl_HYUNDAI_COUNTY(60, 60) | ||
} | ||
|
||
switch(FEAT_ROADVEHS, SELF, sw_HYUNDAI_COUNTY_LONG_purchase, 1) { | ||
set_HYUNDAI_COUNTY_LONG_SEOUL_purchase; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/*------------------------------------------------------------------------------ | ||
* 한국 버스 세트(Korean Bus Set) | ||
* https://github.com/KoreanGRF/KoreanBusSet | ||
------------------------------------------------------------------------------*/ | ||
/** | ||
* Hyundai County | ||
*/ | ||
SPEED(HYUNDAI_COUNTY_LONG) | ||
COST(HYUNDAI_COUNTY_LONG) | ||
RUNNING(HYUNDAI_COUNTY_LONG) | ||
CAPACITY(HYUNDAI_COUNTY_LONG) | ||
LOADING(HYUNDAI_COUNTY_LONG) | ||
|
||
// Graphic | ||
#include "graphic.pnml" | ||
|
||
// Switch | ||
#include "switch.pnml" | ||
|
||
// Hyundai low floor | ||
item(FEAT_ROADVEHS, ko_bus_HYUNDAI_COUNTY_LONG, 5030) { | ||
property { | ||
// Common properties | ||
name: string(STR_HYUNDAI_COUNTY_LONG_NAME); | ||
climates_available: ALL_CLIMATES; | ||
introduction_date: var_HYUNDAI_COUNTY_LONG_INTRODUCTION; | ||
road_type: ROAD; | ||
sprite_id: SPRITE_ID_NEW_ROADVEH; | ||
|
||
// Spec | ||
power: 125 kW; | ||
weight: 5 ton; | ||
|
||
// Model | ||
model_life: VEHICLE_NEVER_EXPIRES; | ||
vehicle_life: 15; | ||
retire_early: 0; | ||
reliability_decay: 0; | ||
|
||
// Cargo | ||
cargo_capacity: 15; | ||
refittable_cargo_classes: NO_CARGO_CLASS; | ||
non_refittable_cargo_classes: NO_CARGO_CLASS; | ||
cargo_allow_refit: [PASS]; | ||
cargo_disallow_refit: []; | ||
|
||
// Costs | ||
refit_cost: 0; | ||
running_cost_base: RUNNING_COST_ROADVEH; | ||
|
||
// Flags | ||
misc_flags: bitmask(ROADVEH_FLAG_AUTOREFIT); | ||
sound_effect: SOUND_BUS_START_PULL_AWAY; | ||
} | ||
graphics { | ||
default: sw_HYUNDAI_COUNTY_LONG_engine; | ||
purchase: sw_HYUNDAI_COUNTY_LONG_purchase; | ||
|
||
speed: sw_HYUNDAI_COUNTY_LONG_speed; | ||
cost_factor: sw_HYUNDAI_COUNTY_LONG_cost; | ||
running_cost_factor: sw_HYUNDAI_COUNTY_LONG_runningcost; | ||
cargo_capacity: sw_HYUNDAI_COUNTY_LONG_capacity; | ||
loading_speed: sw_HYUNDAI_COUNTY_LONG_loadingspeed; | ||
|
||
cargo_subtype_text: sw_HYUNDAI_COUNTY_LONG_cargo_subtype_text; | ||
|
||
// Company colours remapping | ||
colour_mapping: sw_HYUNDAI_COUNTY_LONG_recolour; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/*------------------------------------------------------------------------------ | ||
* 한국 버스 세트(Korean Bus Set) | ||
* https://github.com/KoreanGRF/KoreanBusSet | ||
------------------------------------------------------------------------------*/ | ||
|
||
// Cargo subtype | ||
switch(FEAT_ROADVEHS, SELF, sw_HYUNDAI_COUNTY_LONG_cargo_subtype_text, cargo_subtype) { | ||
// 1: // DEFAULT | ||
2: return string(STR_REFIT_LIVERY_SEOUL_DARK_BLUE); | ||
3: return string(STR_REFIT_LIVERY_SEOUL_YELLOW); | ||
4: return string(STR_REFIT_LIVERY_SEOUL_RED); | ||
5: return string(STR_REFIT_LIVERY_SEOUL_GREEN); | ||
6: return string(STR_REFIT_LIVERY_SEOUL_BLUE); | ||
// Gyeonggi | ||
10: return string(STR_REFIT_LIVERY_GYEONGGI_COMPANY_COLOUR); | ||
11: return string(STR_REFIT_LIVERY_GYEONGGI_DARK_BLUE); | ||
12: return string(STR_REFIT_LIVERY_GYEONGGI_PALE_GREEN); | ||
13: return string(STR_REFIT_LIVERY_GYEONGGI_PINK); | ||
14: return string(STR_REFIT_LIVERY_GYEONGGI_YELLOW); | ||
15: return string(STR_REFIT_LIVERY_GYEONGGI_RED); | ||
16: return string(STR_REFIT_LIVERY_GYEONGGI_LIGHT_BLUE); | ||
17: return string(STR_REFIT_LIVERY_GYEONGGI_GREEN); | ||
18: return string(STR_REFIT_LIVERY_GYEONGGI_BLUE); | ||
// Other | ||
20: return string(STR_REFIT_LIVERY_HYUNDAI_COUNTY_ECRUBEIGE); | ||
return string(STR_REFIT_LIVERY_SEOUL_COMPANY_COLOUR); | ||
} | ||
|
||
// Colour remapping | ||
switch(FEAT_ROADVEHS, SELF, sw_HYUNDAI_COUNTY_LONG_recolour, cargo_subtype) { | ||
// 1: // DEFAULT | ||
// Seoul | ||
2: palette_1cc(COLOUR_DARK_BLUE); | ||
3: palette_1cc(COLOUR_YELLOW); | ||
4: palette_1cc(COLOUR_RED); | ||
5: palette_1cc(COLOUR_GREEN); | ||
6: palette_1cc(COLOUR_BLUE); | ||
// Gyeonggi | ||
// 10: // GYEONGGI_COMPANY_COLOUR | ||
11: palette_1cc(COLOUR_DARK_BLUE); | ||
12: palette_1cc(COLOUR_PALE_GREEN); | ||
13: palette_1cc(COLOUR_PINK); | ||
14: palette_1cc(COLOUR_YELLOW); | ||
15: palette_1cc(COLOUR_RED); | ||
16: palette_1cc(COLOUR_LIGHT_BLUE); | ||
17: palette_1cc(COLOUR_GREEN); | ||
18: palette_1cc(COLOUR_BLUE); | ||
return CB_RESULT_COLOUR_MAPPING_ADD_CC; | ||
} | ||
|
||
// Engine | ||
switch(FEAT_ROADVEHS, SELF, sw_HYUNDAI_COUNTY_LONG_engine, cargo_subtype) { | ||
1..9: set_HYUNDAI_COUNTY_LONG_SEOUL; | ||
10..19: set_HYUNDAI_COUNTY_LONG_GYEONGGI; | ||
// Other | ||
20: set_HYUNDAI_COUNTY_LONG_ERUDBEIGE; | ||
return set_HYUNDAI_COUNTY_LONG_SEOUL; | ||
} | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/*------------------------------------------------------------------------------ | ||
* 한국 버스 세트(Korean Bus Set) | ||
* https://github.com/KoreanGRF/KoreanBusSet | ||
------------------------------------------------------------------------------*/ | ||
|
||
// Seoul | ||
spriteset(set_HYUNDAI_COUNTY_XLONG_SEOUL_purchase, "./src/hyundai/COUNTY_XLONG/COUNTY_XLONG.png") { | ||
tmpl_purchase_detail(0, 0, 31, 13, -14, -6) | ||
} | ||
spriteset(set_HYUNDAI_COUNTY_XLONG_SEOUL, "./src/hyundai/COUNTY_XLONG/COUNTY_XLONG.png") { | ||
tmpl_HYUNDAI_COUNTY(60, 0) | ||
} | ||
|
||
// Gyeonggi | ||
spriteset(set_HYUNDAI_COUNTY_XLONG_GYEONGGI_purchase, "./src/hyundai/COUNTY_XLONG/COUNTY_XLONG.png") { | ||
tmpl_purchase_detail(0, 30, 31, 13, -14, -6) | ||
} | ||
spriteset(set_HYUNDAI_COUNTY_XLONG_GYEONGGI, "./src/hyundai/COUNTY_XLONG/COUNTY_XLONG.png") { | ||
tmpl_HYUNDAI_COUNTY(60, 30) | ||
} | ||
|
||
// Erud Beige | ||
spriteset(set_HYUNDAI_COUNTY_XLONG_ERUDBEIGE_purchase, "./src/hyundai/COUNTY_XLONG/COUNTY_XLONG.png") { | ||
tmpl_purchase_detail(0, 90, 31, 13, -14, -6) | ||
} | ||
spriteset(set_HYUNDAI_COUNTY_XLONG_ERUDBEIGE, "./src/hyundai/COUNTY_XLONG/COUNTY_XLONG.png") { | ||
tmpl_HYUNDAI_COUNTY(60, 60) | ||
} | ||
|
||
switch(FEAT_ROADVEHS, SELF, sw_HYUNDAI_COUNTY_XLONG_purchase, 1) { | ||
set_HYUNDAI_COUNTY_XLONG_SEOUL_purchase; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/*------------------------------------------------------------------------------ | ||
* 한국 버스 세트(Korean Bus Set) | ||
* https://github.com/KoreanGRF/KoreanBusSet | ||
------------------------------------------------------------------------------*/ | ||
/** | ||
* Hyundai County | ||
*/ | ||
SPEED(HYUNDAI_COUNTY_XLONG) | ||
COST(HYUNDAI_COUNTY_XLONG) | ||
RUNNING(HYUNDAI_COUNTY_XLONG) | ||
CAPACITY(HYUNDAI_COUNTY_XLONG) | ||
LOADING(HYUNDAI_COUNTY_XLONG) | ||
|
||
// Graphic | ||
#include "graphic.pnml" | ||
|
||
// Switch | ||
#include "switch.pnml" | ||
|
||
// Hyundai low floor | ||
item(FEAT_ROADVEHS, ko_bus_HYUNDAI_COUNTY_XLONG, 5031) { | ||
property { | ||
// Common properties | ||
name: string(STR_HYUNDAI_COUNTY_XLONG_NAME); | ||
climates_available: ALL_CLIMATES; | ||
introduction_date: var_HYUNDAI_COUNTY_XLONG_INTRODUCTION; | ||
road_type: ROAD; | ||
sprite_id: SPRITE_ID_NEW_ROADVEH; | ||
|
||
// Spec | ||
power: 125 kW; | ||
weight: 5 ton; | ||
|
||
// Model | ||
model_life: VEHICLE_NEVER_EXPIRES; | ||
vehicle_life: 15; | ||
retire_early: 0; | ||
reliability_decay: 0; | ||
|
||
// Cargo | ||
cargo_capacity: 15; | ||
refittable_cargo_classes: NO_CARGO_CLASS; | ||
non_refittable_cargo_classes: NO_CARGO_CLASS; | ||
cargo_allow_refit: [PASS]; | ||
cargo_disallow_refit: []; | ||
|
||
// Costs | ||
refit_cost: 0; | ||
running_cost_base: RUNNING_COST_ROADVEH; | ||
|
||
// Flags | ||
misc_flags: bitmask(ROADVEH_FLAG_AUTOREFIT); | ||
sound_effect: SOUND_BUS_START_PULL_AWAY; | ||
} | ||
graphics { | ||
default: sw_HYUNDAI_COUNTY_XLONG_engine; | ||
purchase: sw_HYUNDAI_COUNTY_XLONG_purchase; | ||
|
||
speed: sw_HYUNDAI_COUNTY_XLONG_speed; | ||
cost_factor: sw_HYUNDAI_COUNTY_XLONG_cost; | ||
running_cost_factor: sw_HYUNDAI_COUNTY_XLONG_runningcost; | ||
cargo_capacity: sw_HYUNDAI_COUNTY_XLONG_capacity; | ||
loading_speed: sw_HYUNDAI_COUNTY_XLONG_loadingspeed; | ||
|
||
cargo_subtype_text: sw_HYUNDAI_COUNTY_XLONG_cargo_subtype_text; | ||
|
||
// Company colours remapping | ||
colour_mapping: sw_HYUNDAI_COUNTY_XLONG_recolour; | ||
} | ||
} |
Oops, something went wrong.