Add cards
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 598 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 716 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 736 B |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 771 B |
BIN
parts/upgrades/more-creature-resources-card.png
Normal file
After Width: | Height: | Size: 763 B |
34
parts/upgrades/more-creature-resources-card.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c4b0ek0cyy8ei"
|
||||
path="res://.godot/imported/more-creature-resources-card.png-8506657c0a8d79a84ffcf45aa0cdb4d5.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://parts/upgrades/more-creature-resources-card.png"
|
||||
dest_files=["res://.godot/imported/more-creature-resources-card.png-8506657c0a8d79a84ffcf45aa0cdb4d5.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
parts/upgrades/more-creatures-card.png
Normal file
After Width: | Height: | Size: 699 B |
34
parts/upgrades/more-creatures-card.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://da1ql71wv8quk"
|
||||
path="res://.godot/imported/more-creatures-card.png-0875d97be365fbdb17a2d2d0dc9e04dc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://parts/upgrades/more-creatures-card.png"
|
||||
dest_files=["res://.godot/imported/more-creatures-card.png-0875d97be365fbdb17a2d2d0dc9e04dc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
|
@ -91,6 +91,8 @@ func _update_card(index):
|
|||
choice = main.upgrade_pool.pop_back()
|
||||
card_data = Data.data.upgrades[choice]
|
||||
|
||||
cards[index].object.texture = Data.data.images["%s-card" % [choice]]
|
||||
|
||||
cost = card_data.cost
|
||||
for i in range(0, Persister.get_value(choice, PersisterEnums.Scope.UNKNOWN, 0)):
|
||||
cost += round(cost / 2)
|
||||
|
|
|
@ -53,7 +53,7 @@ func _generate_spawn_times():
|
|||
spawn_times = []
|
||||
|
||||
for i in range(0, Persister.get_value("creature_amount")):
|
||||
spawn_times.push_back(randi_range(2, 6 * 24 - 2))
|
||||
spawn_times.push_back(randi_range(10, 6 * 24 - 2 - 20))
|
||||
|
||||
|
||||
func _on_timer_timeout() -> void:
|
||||
|
|