|
1
|
function scr_shop_vendingscr_shop_vending
function scr_shop_vending()
{
}
function vending_menu_option(arg0 = "", arg1 = 0, arg2 = "", arg3 = 0) constructor
{
option_text = arg0;
menu_type = arg1;
talk_flag = arg2;
talk_style = arg3;
times_selected = 0;
}
function vending_item(arg0 = 0, arg1 = "", arg2 = 0, arg3 = 0) constructor
{
item_id = arg0;
item_type = arg1;
item_desc = vending_get_item_description(item_id, item_type);
point_value = arg2;
custom_price = arg3;
}
function vending_event(arg0 = 0, arg1 = "", arg2 = 0, arg3 = "", arg4 = []) constructor
{
item_id = arg0;
item_type = "event";
item_desc = arg1;
point_value = arg2;
price_label = arg3;
sold_flag = arg4;
}
function vending_get_item_description(arg0 = 0, arg1 = "")
{
var _desc = "";
if (arg1 == "item")
{
switch (arg0)
{
case 34:
_desc = stringsetloc(ITEM#Even non-TVs#can eat it#HP+100"ITEM#Even non-TVs#can eat it#HP+100", "scr_shop_vending_slash_scr_shop_vending_gml_43_0" );
break;
case 37:
_desc = stringsetloc(ITEM#Full of#nutrient#HP+80"ITEM#Full of#nutrient#HP+80", "scr_shop_vending_slash_scr_shop_vending_gml_46_0" );
if (room == room_dw_changing_room)
_desc = stringsetloc(ITEM#Members#discount#deal!#HP+80"ITEM#Members#discount#deal!#HP+80", "scr_shop_vending_slash_scr_shop_vending_gml_49_0" );
break;
case 39:
_desc = stringsetloc(ITEM#Classy#meal for#big shots#HP+140"ITEM#Classy#meal for#big shots#HP+140", "scr_shop_vending_slash_scr_shop_vending_gml_53_0" );
break;
default:
break;
}
}
else if (arg1 == "armor")
{
switch (arg0)
{
case 24:
_desc = stringsetloc(ARMOR#Gain more TP#from bullets"ARMOR#Gain more TP#from bullets", "scr_shop_vending_slash_scr_shop_vending_gml_63_0" );
break;
case 25:
_desc = stringsetloc(ARMOR#Fragrant#armor"ARMOR#Fragrant#armor", "scr_shop_vending_slash_scr_shop_vending_gml_66_0" );
break;
default:
break;
}
}
else if (arg1 == "weapon")
{
switch (arg0)
{
case 23:
_desc = stringsetloc(WEAPON#Tsun-type#armaments"WEAPON#Tsun-type#armaments", "scr_shop_vending_slash_scr_shop_vending_gml_77_0" );
break;
case 24:
_desc = stringsetloc(WEAPON#Smelly#weapon"WEAPON#Smelly#weapon", "scr_shop_vending_slash_scr_shop_vending_gml_80_0" );
break;
case 25:
_desc = stringsetloc(WEAPON#Weaklings#can flex too"WEAPON#Weaklings#can flex too", "scr_shop_vending_slash_scr_shop_vending_gml_83_0" );
break;
default:
break;
}
}
return _desc;
} ()
|
|
2
|
{
|
|
3
|
}
|
|
4
|
|
|
5
|
function vending_menu_option(arg0 = "", arg1 = 0, arg2 = "", arg3 = 0) constructor
|
|
6
|
{
|
|
7
|
option_text = arg0;
|
|
8
|
menu_type = arg1;
|
|
9
|
talk_flag = arg2;
|
|
10
|
talk_style = arg3;
|
|
11
|
times_selected = 0;
|
|
12
|
}
|
|
13
|
|
|
14
|
function vending_item(arg0 = 0, arg1 = "", arg2 = 0, arg3 = 0) constructor
|
|
15
|
{
|
|
16
|
item_id = arg0;
|
|
17
|
item_type = arg1;
|
|
18
|
item_desc = vending_get_item_description(item_id, item_type);
|
|
19
|
point_value = arg2;
|
|
20
|
custom_price = arg3;
|
|
21
|
}
|
|
22
|
|
|
23
|
function vending_event(arg0 = 0, arg1 = "", arg2 = 0, arg3 = "", arg4 = []) constructor
|
|
24
|
{
|
|
25
|
item_id = arg0;
|
|
26
|
item_type = "event";
|
|
27
|
item_desc = arg1;
|
|
28
|
point_value = arg2;
|
|
29
|
price_label = arg3;
|
|
30
|
sold_flag = arg4;
|
|
31
|
}
|
|
32
|
|
|
33
|
function vending_get_item_description(arg0 = 0, arg1 = "")
|
|
34
|
{
|
|
35
|
var _desc = "";
|
|
36
|
if (arg1 == "item")
|
|
37
|
{
|
|
38
|
switch (arg0)
|
|
39
|
{
|
|
40
|
case 34:
|
|
41
|
_desc = stringsetloc(ITEM#Even non-TVs#can eat it#HP+100"ITEM#Even non-TVs#can eat it#HP+100", "scr_shop_vending_slash_scr_shop_vending_gml_43_0" );
|
|
42
|
break;
|
|
43
|
case 37:
|
|
44
|
_desc = stringsetloc(ITEM#Full of#nutrient#HP+80"ITEM#Full of#nutrient#HP+80", "scr_shop_vending_slash_scr_shop_vending_gml_46_0" );
|
|
45
|
if (room == room_dw_changing_room)
|
|
46
|
_desc = stringsetloc(ITEM#Members#discount#deal!#HP+80"ITEM#Members#discount#deal!#HP+80", "scr_shop_vending_slash_scr_shop_vending_gml_49_0" );
|
|
47
|
break;
|
|
48
|
case 39:
|
|
49
|
_desc = stringsetloc(ITEM#Classy#meal for#big shots#HP+140"ITEM#Classy#meal for#big shots#HP+140", "scr_shop_vending_slash_scr_shop_vending_gml_53_0" );
|
|
50
|
break;
|
|
51
|
default:
|
|
52
|
break;
|
|
53
|
}
|
|
54
|
}
|
|
55
|
else if (arg1 == "armor")
|
|
56
|
{
|
|
57
|
switch (arg0)
|
|
58
|
{
|
|
59
|
case 24:
|
|
60
|
_desc = stringsetloc(ARMOR#Gain more TP#from bullets"ARMOR#Gain more TP#from bullets", "scr_shop_vending_slash_scr_shop_vending_gml_63_0" );
|
|
61
|
break;
|
|
62
|
case 25:
|
|
63
|
_desc = stringsetloc(ARMOR#Fragrant#armor"ARMOR#Fragrant#armor", "scr_shop_vending_slash_scr_shop_vending_gml_66_0" );
|
|
64
|
break;
|
|
65
|
default:
|
|
66
|
break;
|
|
67
|
}
|
|
68
|
}
|
|
69
|
else if (arg1 == "weapon")
|
|
70
|
{
|
|
71
|
switch (arg0)
|
|
72
|
{
|
|
73
|
case 23:
|
|
74
|
_desc = stringsetloc(WEAPON#Tsun-type#armaments"WEAPON#Tsun-type#armaments", "scr_shop_vending_slash_scr_shop_vending_gml_77_0" );
|
|
75
|
break;
|
|
76
|
case 24:
|
|
77
|
_desc = stringsetloc(WEAPON#Smelly#weapon"WEAPON#Smelly#weapon", "scr_shop_vending_slash_scr_shop_vending_gml_80_0" );
|
|
78
|
break;
|
|
79
|
case 25:
|
|
80
|
_desc = stringsetloc(WEAPON#Weaklings#can flex too"WEAPON#Weaklings#can flex too", "scr_shop_vending_slash_scr_shop_vending_gml_83_0" );
|
|
81
|
break;
|
|
82
|
default:
|
|
83
|
break;
|
|
84
|
}
|
|
85
|
}
|
|
86
|
return _desc;
|
|
87
|
}
|