1 |
draw_set_font(fnt_battle) |
2 |
draw_set_color(c_white) |
3 |
draw_set_halign(fa_left) |
4 |
draw_set_valign(fa_top) |
5 |
i = 1 |
6 |
while (i < array_length_1d(global.item_slot)) |
7 |
{ |
8 |
if (global.item_slot[i] == "Nothing") |
9 |
{ |
10 |
if (i == 1) |
11 |
draw_text((obj_talk_screen_shop.x + 30), (obj_talk_screen_shop.y + 10 + (i - 1) * 20), string_hash_to_newline("Inventory Empty")) |
12 |
break |
13 |
} |
14 |
else |
15 |
{ |
16 |
var item_price = scr_determine_sell_price_shopscr_determine_sell_price_shopfunction scr_determine_sell_price_shop(argument0) //gml_Script_scr_determine_sell_price_shop
{
switch argument0
{
case "Lemonade":
case "Candy Corn":
case "Corn Dog":
case "Sponge Cake":
case "Hndw Coffee":
case "Hndw Pancake":
case "G.B. Bear":
case "Hot Pop":
case "Lukewarm Pop":
case "Cold Pop":
case "Packing Peanuts":
case "Moss Salad":
case "Grassy Fries":
case "Flower Stew":
case "Gravity Granola":
case "Dihydrogen Monoxide":
case "Popato Chisps":
case "Beef Jerky":
case "Cake":
case "Monster Candy":
case "Monster Candy+":
case "C-B Strudel":
case "Floral Cupcake":
case "Hot Dog":
case "Corn Chowder":
return 15;
case "G. Coffee":
case "G. Pear":
case "G. Cactus":
return 50;
case "Adult Soda":
return 25;
case "Patch":
case "Feather":
case "Pebble Ammo":
case "Silver Ammo":
case "Rubber Ammo":
case "Cff Bean Ammo":
case "Honeydew Pin":
case "Band Merch Pin":
case "Safety Goggles":
case "Nails":
case "Friendliness Pellets":
return 15;
case "Golden Scarf":
case "Super Ammo":
case "Delta Rune Patch":
return 100;
case "Necklace":
return 100;
case "Icewater":
case "Feisty Slider":
return 15;
case "Root Beer":
return 25;
case "H. Acid":
return 0;
default:
return 15;
}
} (global.item_slot[i]) |
17 |
var item_name = string(global.item_slot[i]) |
18 |
if (item_name == "Dihydrogen Monoxide") |
19 |
item_name = "H2O" |
20 |
else if (item_name == "Friendliness Pellets") |
21 |
item_name = "F. Pellets" |
22 |
draw_text((obj_talk_screen_shop.x + 30 + (i > 4) * 160), (obj_talk_screen_shop.y + 10 + (i - 1 - (i > 4) * 4) * 20), string_hash_to_newline(item_name + " - " + string(item_price) + "G")) |
23 |
i += 1 |
24 |
continue |
25 |
} |
26 |
} |
27 |
draw_text((obj_talk_screen_shop.x + 30), (obj_talk_screen_shop.y + 90), string_hash_to_newline("Exit")) |