Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] added altar blessing and monk #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions global/const/locale/locale_en.gd
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ const resource_generator_label: Dictionary = {
"CREEK": "Dredge",
"FOREST": "Scavenge",
"WILD": "Hunting Trip",
"altar": "Craft Altar",
"axe": "Craft Axe",
"brick": "Bake Clay",
"blessing": "Pray",
"clay": "Dig Clay",
"coal": "",
"common": "Button1",
Expand Down Expand Up @@ -159,8 +161,10 @@ const resource_generator_title: Dictionary = {
"CREEK": "Dredge the Creek",
"FOREST": "Scavenge the Forest",
"WILD": "Hunt the Wilderness",
"altar": "Altar",
"axe": "Axe",
"brick": "Bake Clay",
"blessing": "Pray",
"clay": "Dig Clay",
"coal": "",
"common": "Button One",
Expand Down Expand Up @@ -195,6 +199,7 @@ const resource_generator_flavor: Dictionary = {
"CREEK": "The bottom of the shallow creek is ready for picking.",
"FOREST": "Things are waiting to be found within.",
"WILD": "The deep forest howls and screeches.",
"altar": "Connects with gods.",
"axe": "A very sharp object, do not play with it.",
"brick": "Excuse me, this is not a bakery.",
"clay": "Pierce the muddy waters for their essence.",
Expand Down Expand Up @@ -334,6 +339,7 @@ const worker_role_flavor: Dictionary = {
"iron_smelter": "Just provide materials and a small fur payment.",
"lumberjack": "The big trees will not clear themselves.",
"mason": "Skilled craftsmen.",
"monk": "Prays to god in your name.",
"recruiter": "",
"sergeant": "Say couple fur is fair for my expertise.",
"smelter": "Sits next to firepit to take out bricks.",
Expand Down
1 change: 0 additions & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ enabled=PackedStringArray("res://addons/format_on_save/plugin.cfg", "res://addon
[rendering]

textures/canvas_textures/default_texture_filter=0
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
textures/vram_compression/import_etc2_astc=true
environment/defaults/default_clear_color=Color(0.301961, 0.301961, 0.301961, 1)
Expand Down
22 changes: 22 additions & 0 deletions resources/game_data/resource_generator/tres/altar.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[gd_resource type="Resource" script_class="ResourceGenerator" load_steps=2 format=3 uid="uid://bnexps07s113v"]

[ext_resource type="Script" path="res://resources/game_data/resource_generator/resource_generator.gd" id="1_8dm3y"]

[resource]
script = ExtResource("1_8dm3y")
color = Color(0, 0, 0, 1)
sort_value = 107
sort_value_override = 0.0
id = "altar"
amount = 1
cooldown = 100.0
costs = {
"stone": 4,
"wood": 10
}
cost_scales = {}
worker_costs = {}
random_drops = {}
hidden = true
max_amount = 1
column = 1
19 changes: 19 additions & 0 deletions resources/game_data/resource_generator/tres/blessing.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[gd_resource type="Resource" script_class="ResourceGenerator" load_steps=2 format=3 uid="uid://ble0xhmgputl2"]

[ext_resource type="Script" path="res://resources/game_data/resource_generator/resource_generator.gd" id="1_jluef"]

[resource]
script = ExtResource("1_jluef")
color = Color(0, 0, 0, 1)
sort_value = 107
sort_value_override = 0.0
id = "blessing"
amount = 1
cooldown = 10.0
costs = {}
cost_scales = {}
worker_costs = {}
random_drops = {}
hidden = false
max_amount = -1
column = 0
20 changes: 20 additions & 0 deletions resources/game_data/worker_role/tres/monk.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[gd_resource type="Resource" script_class="WorkerRole" load_steps=2 format=3 uid="uid://bc4jukm4i3o5n"]

[ext_resource type="Script" path="res://resources/game_data/worker_role/worker_role.gd" id="1_opf40"]

[resource]
script = ExtResource("1_opf40")
order = 7
sort_value = 20
id = "monk"
produce = {
"blessing": 1
}
consume = {
"food": 3,
"fur": 1,
"torch": 1
}
worker_consume = {}
default = false
column = 1
6 changes: 6 additions & 0 deletions scenes/controller/unlock_controller/unlock_controller.gd
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ func _handle_on_resource_increased(observed_id: String, observed_total: int) ->
_unlock_resource_generator_if("WILD")
_unlock_worker_role_if("hunter")
_unlock_worker_role_if("tanner")
if observed_id == "altar" and observed_total == 1:
_unlock_resource_generator_if("blessing")
_unlock_worker_role_if("monk")

if observed_id == "stone" and observed_total >= 1:
_unlock_resource_generator_if("altar")

if observed_id == "brick" and observed_total >= 1:
_unlock_resource_generator_if("house")
Expand Down