17 lines
307 B
GDScript
17 lines
307 B
GDScript
extends Skill
|
|
|
|
class_name Building
|
|
|
|
func _init():
|
|
skillName = "Building"
|
|
skillIcon = load("res://Skills/Building/BuildingIcon.png")
|
|
|
|
func get_building_speed(item:Item):
|
|
var buildingSpeed = 70
|
|
buildingSpeed -= item.get_weight() * 2
|
|
|
|
if buildingSpeed <= 20:
|
|
buildingSpeed = 20
|
|
|
|
return buildingSpeed
|