équilibrage des quota et du jeu, changement du GUI pour rendre les objectifs de quotas plus visibles #72
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="IncreaseDayLimitReward" load_steps=2 format=3 uid="uid://b11qyyi8k0mua"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://df6i1hivw4ymn" path="res://entities/objectives/scripts/rewards/increase_day_limit_reward.gd" id="1_gt31s"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_gt31s")
|
||||
day_limit_increase = 5
|
||||
metadata/_custom_type_script = "uid://df6i1hivw4ymn"
|
||||
@@ -1,8 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="LootRandomSeedsReward" load_steps=2 format=3 uid="uid://ca62vcsijbxgc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bcdilfb4j7f6d" path="res://entities/objectives/scripts/rewards/loot_random_seeds_reward.gd" id="1_yjhoy"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_yjhoy")
|
||||
seeds_number = 5
|
||||
metadata/_custom_type_script = "uid://bcdilfb4j7f6d"
|
||||
@@ -16,4 +16,4 @@ func get_text() -> String:
|
||||
return "+"+str(day_limit_increase)
|
||||
|
||||
func get_description() -> String:
|
||||
return "Increase the day limitation by " + str(day_limit_increase)
|
||||
return "Increase the day limitation by " + str(day_limit_increase) + "."
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
extends ObjectiveReward
|
||||
class_name RechargePlayerReward
|
||||
|
||||
@export var recharge_amount = 1
|
||||
|
||||
func _init(_recharge_amount : int = 1):
|
||||
recharge_amount = _recharge_amount
|
||||
|
||||
func reward(objective : Objective):
|
||||
objective.planet.player.recharge(recharge_amount)
|
||||
|
||||
func get_icon() -> Texture:
|
||||
return preload("res://common/icons/bolt.svg")
|
||||
|
||||
func get_text() -> String:
|
||||
return "+"+str(recharge_amount)+" "
|
||||
|
||||
func get_description() -> String:
|
||||
return "Recharge player energy by " + str(recharge_amount) + "."
|
||||
@@ -0,0 +1 @@
|
||||
uid://4ak4kre3emnd
|
||||
@@ -16,4 +16,4 @@ func get_text() -> String:
|
||||
return "+"+str(upgrade_amount)+" max"
|
||||
|
||||
func get_description() -> String:
|
||||
return "Increase player max energy by " + str(upgrade_amount)
|
||||
return "Increase player max energy by " + str(upgrade_amount) + "."
|
||||
|
||||
Reference in New Issue
Block a user