Encore du dev pour la béta 1
* Suppression de la mutation éphémère * Ajout des modificateur de régions normaux Sableux et Toxique * Ajout de modificateurs challenge (Rocheux, Radioactif et Contaminé) * Ajout du modificateur de région bénéfique Résonnance * Ajout d'un distributeur toutes les 3 régions * Ajout des régions challenge * Bouclage sur les couleurs des mutations après le niveau 4 * Ajout de deux nouveaux panneaux de tutoriel, un sur les informations de plantes et l'autre sur le vaisseau
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
extends RegionModifier
|
||||
class_name ContaminatedModifier
|
||||
|
||||
func get_modifier_name() -> String:
|
||||
return tr("CONTAMINATED")
|
||||
|
||||
func get_description() -> String:
|
||||
return tr("CONTAMINATED_MODIFIER_DESC_TEXT")
|
||||
|
||||
func get_icon() -> Texture:
|
||||
return preload("res://common/icons/virus.svg")
|
||||
|
||||
func get_card_section_color() -> Color:
|
||||
return Color("8b2dffff")
|
||||
|
||||
func modify_plant_seed_random_loose(plant_seed_random_loose : int) -> int:
|
||||
return plant_seed_random_loose + 1
|
||||
|
||||
func modify_plant_seed_number(plant_seed_number : int) -> int:
|
||||
return plant_seed_number - 1
|
||||
@@ -0,0 +1 @@
|
||||
uid://i14hpayg3owb
|
||||
@@ -0,0 +1,17 @@
|
||||
extends RegionModifier
|
||||
class_name RadioactiveModifier
|
||||
|
||||
func get_modifier_name() -> String:
|
||||
return tr("RADIOACTIVE")
|
||||
|
||||
func get_description() -> String:
|
||||
return tr("RADIOACTIVE_MODIFIER_DESC_TEXT")
|
||||
|
||||
func get_icon() -> Texture:
|
||||
return preload("res://common/icons/radioactive.svg")
|
||||
|
||||
func get_card_section_color() -> Color:
|
||||
return Color("8b2dffff")
|
||||
|
||||
func modify_plant_base_score(plant_base_score : int) -> int:
|
||||
return plant_base_score - 1
|
||||
@@ -0,0 +1 @@
|
||||
uid://bqpi0ct8pryax
|
||||
@@ -55,6 +55,26 @@ func modify_cristal_threshold(cristal_threshold : float) -> float:
|
||||
func modify_start_decontamination_zone_radius(start_decontamination_zone_radius : int) -> int:
|
||||
return start_decontamination_zone_radius
|
||||
|
||||
func modify_seed_rarity_pool(seed_rarity_pool : Array[int]) -> Array[int]:
|
||||
return seed_rarity_pool
|
||||
|
||||
func modify_plant_growing_time(plant_growing_time : int) -> int:
|
||||
return plant_growing_time
|
||||
|
||||
func modify_plant_lifetime(plant_lifetime : int) -> int:
|
||||
return plant_lifetime
|
||||
|
||||
func modify_plant_seed_number(plant_seed_number : int) -> int:
|
||||
return plant_seed_number
|
||||
|
||||
func modify_plant_base_score(plant_base_score : int) -> int:
|
||||
return plant_base_score
|
||||
|
||||
func modify_plant_seed_random_loose(plant_seed_random_loose : int) -> int:
|
||||
return plant_seed_random_loose
|
||||
|
||||
func modify_plant_influence_radius(plant_influence_radius : float) -> float:
|
||||
return plant_influence_radius
|
||||
|
||||
func card_section() -> CardSectionInfo:
|
||||
var section := CardSectionInfo.new(
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
extends RegionModifier
|
||||
class_name ResonnanceModifier
|
||||
|
||||
func get_modifier_name() -> String:
|
||||
return tr("RESONNANCE")
|
||||
|
||||
func get_description() -> String:
|
||||
return tr("RESONNANCE_MODIFIER_DESC_TEXT")
|
||||
|
||||
func get_icon() -> Texture:
|
||||
return preload("res://common/icons/wave-sine.svg")
|
||||
|
||||
func get_card_section_color() -> Color:
|
||||
return Color("25c147")
|
||||
|
||||
func modify_seed_rarity_pool(seed_rarity_pool : Array[int]) -> Array[int]:
|
||||
for i in range(len(seed_rarity_pool)):
|
||||
seed_rarity_pool[i] += 1
|
||||
return seed_rarity_pool
|
||||
@@ -0,0 +1 @@
|
||||
uid://dsowdgj1wspvb
|
||||
17
stages/terrain/region/scripts/modifiers/rocky_modifier.gd
Normal file
17
stages/terrain/region/scripts/modifiers/rocky_modifier.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
extends RegionModifier
|
||||
class_name RockyModifier
|
||||
|
||||
func get_modifier_name() -> String:
|
||||
return tr("ROCKY")
|
||||
|
||||
func get_description() -> String:
|
||||
return tr("ROCKY_MODIFIER_DESC_TEXT")
|
||||
|
||||
func get_icon() -> Texture:
|
||||
return preload("res://common/icons/mountain.svg")
|
||||
|
||||
func get_card_section_color() -> Color:
|
||||
return Color("8b2dffff")
|
||||
|
||||
func modify_cristal_threshold(cristal_threshold : float) -> float:
|
||||
return cristal_threshold * 0.
|
||||
@@ -0,0 +1 @@
|
||||
uid://bmhfhct6wa218
|
||||
14
stages/terrain/region/scripts/modifiers/sandy_modifier.gd
Normal file
14
stages/terrain/region/scripts/modifiers/sandy_modifier.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends RegionModifier
|
||||
class_name SandyModifier
|
||||
|
||||
func get_modifier_name() -> String:
|
||||
return tr("SANDY")
|
||||
|
||||
func get_description() -> String:
|
||||
return tr("SANDY_MODIFIER_DESC_TEXT")
|
||||
|
||||
func get_icon() -> Texture:
|
||||
return preload("res://common/icons/grain.svg")
|
||||
|
||||
func modify_plant_influence_radius(plant_influence_radius : float) -> float:
|
||||
return plant_influence_radius / 2
|
||||
@@ -0,0 +1 @@
|
||||
uid://b0ca7k6lh57f
|
||||
14
stages/terrain/region/scripts/modifiers/toxic_modifier.gd
Normal file
14
stages/terrain/region/scripts/modifiers/toxic_modifier.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends RegionModifier
|
||||
class_name ToxicModifier
|
||||
|
||||
func get_modifier_name() -> String:
|
||||
return tr("TOXIC")
|
||||
|
||||
func get_description() -> String:
|
||||
return tr("TOXIC_MODIFIER_DESC_TEXT")
|
||||
|
||||
func get_icon() -> Texture:
|
||||
return preload("res://common/icons/biohazard.svg")
|
||||
|
||||
func modify_plant_lifetime(plant_lifetime : int) -> int:
|
||||
return plant_lifetime - 1
|
||||
@@ -0,0 +1 @@
|
||||
uid://8pqatifhi7fs
|
||||
@@ -18,9 +18,6 @@ const CHUNK_UNLOAD_DISTANCE : int = 3
|
||||
|
||||
const MAX_GENERATION_THREAD = 1 # Crash when superior to 1
|
||||
|
||||
@export var first_loot_number : int = 3
|
||||
@export var loot_item_number : Array[int] = [1,2]
|
||||
|
||||
var is_generated : bool : get = check_is_generated
|
||||
var generated_value : float : get = get_generated_value
|
||||
|
||||
@@ -287,7 +284,7 @@ func dig_hole(game_pos: Vector2, size : int):
|
||||
dig_rocks(hole_tiles,false,false)
|
||||
|
||||
func loot_talion(coord : Vector2i):
|
||||
var new_seed = Seed.generate_random()
|
||||
var new_seed = Seed.generate_random(data.seed_rarity_pool.pick_random())
|
||||
drop_item(
|
||||
new_seed,
|
||||
coord * TILE_SIZE,
|
||||
|
||||
@@ -25,6 +25,7 @@ const PLAYER_ROCK_HOLE_RADIUS = 5
|
||||
@export var decontamination_threshold : float
|
||||
@export var cristal_threshold : float
|
||||
@export var start_decontamination_hole_radius = 3
|
||||
@export var seed_rarity_pool : Array[int] = [0,0,0,0,0,0,0,1,1,1]
|
||||
|
||||
@export var day : int = 1
|
||||
@export var entities_saved_data : Array[EntityData] = []
|
||||
|
||||
@@ -6,6 +6,7 @@ const DEFAULT_DECONTAMINATION_THRESHOLD = 0.4
|
||||
const DEFAULT_CRISTAL_THRESHOLD = 0.1
|
||||
const DEFAULT_CHARGE = 8
|
||||
const DEFAULT_START_DECONTAMINATION_ZONE_RADIUS = 3
|
||||
const DEFAULT_SEED_RARITY_POOL: Array[int] = [0,0,0,0,0,0,0,1,1,1]
|
||||
|
||||
@export var region_name : String
|
||||
@export var region_flags : Array[String]
|
||||
@@ -109,6 +110,10 @@ func get_start_decontamination_zone_radius() -> int:
|
||||
|
||||
return zone_radius
|
||||
|
||||
func card_info() -> CardInfo:
|
||||
return null
|
||||
#TODO
|
||||
func get_seed_rarity_pool() -> int:
|
||||
var seed_rarity_pool = DEFAULT_SEED_RARITY_POOL
|
||||
|
||||
for m in modifiers:
|
||||
seed_rarity_pool = m.modify_seed_rarity_pool(seed_rarity_pool)
|
||||
|
||||
return seed_rarity_pool
|
||||
Reference in New Issue
Block a user