Untracked Files
This commit is contained in:
12
Scripts/Item Locations/abstract_location_items.gd
Normal file
12
Scripts/Item Locations/abstract_location_items.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends Node
|
||||
class_name AbstractLocationItems
|
||||
|
||||
# Public Methods
|
||||
func CheckItemAtLocation(_location: Enums.CheckLocations) -> Enums.Items:
|
||||
push_error("Unimplemented Method")
|
||||
return Enums.Items.RED_POTION
|
||||
|
||||
|
||||
func GetLocationShopPrice(_location: Enums.CheckLocations) -> int:
|
||||
push_error("Unimplemented Method")
|
||||
return 0
|
||||
1
Scripts/Item Locations/abstract_location_items.gd.uid
Normal file
1
Scripts/Item Locations/abstract_location_items.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dhwej0slcry2j
|
||||
24
Scripts/Item Locations/location_items.gd
Normal file
24
Scripts/Item Locations/location_items.gd
Normal file
@@ -0,0 +1,24 @@
|
||||
extends AbstractLocationItems
|
||||
class_name LocationItems
|
||||
|
||||
# Public Methods
|
||||
func CheckItemAtLocation(location: Enums.CheckLocations) -> Enums.Items:
|
||||
match location:
|
||||
Enums.CheckLocations.SHOP_1:
|
||||
return Enums.Items.WOOD_SWORD
|
||||
Enums.CheckLocations.SHOP_2:
|
||||
return Enums.Items.BRONZE_KEY
|
||||
Enums.CheckLocations.SHOP_3:
|
||||
return Enums.Items.RED_POTION
|
||||
return Enums.Items.GOLD_100
|
||||
|
||||
|
||||
func GetLocationShopPrice(location: Enums.CheckLocations) -> int:
|
||||
match location:
|
||||
Enums.CheckLocations.SHOP_1:
|
||||
return 500
|
||||
Enums.CheckLocations.SHOP_2:
|
||||
return 200
|
||||
Enums.CheckLocations.SHOP_3:
|
||||
return 100
|
||||
return 1234
|
||||
1
Scripts/Item Locations/location_items.gd.uid
Normal file
1
Scripts/Item Locations/location_items.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dmtsyb6x5lnco
|
||||
Reference in New Issue
Block a user