Skip to content

Commit

Permalink
remove debug skill desc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamby777 committed Jul 11, 2024
1 parent 34542b4 commit b04850b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 58 deletions.
19 changes: 2 additions & 17 deletions pets-gd/scenes/rooms/cv-outdoors.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=14 format=3 uid="uid://c7x12nyqelw1f"]
[gd_scene load_steps=13 format=3 uid="uid://c7x12nyqelw1f"]

[ext_resource type="PackedScene" uid="uid://pefjtfxt6buk" path="res://scenes/rooms/_Base.tscn" id="1_ls6vf"]
[ext_resource type="PackedScene" uid="uid://dk214wpitbhju" path="res://scenes/walking_enemy.tscn" id="2_2qq46"]
Expand All @@ -13,13 +13,6 @@
[ext_resource type="PackedScene" uid="uid://desphmjvj0i4t" path="res://scenes/builds/furniture/crates/crate_wood_trio.tscn" id="11_8dx4e"]
[ext_resource type="PackedScene" uid="uid://f6tdcsdb0s1e" path="res://scenes/builds/residential/trash_can.tscn" id="12_skh3g"]

[sub_resource type="GDScript" id="GDScript_p08up"]
script/source = "extends InteractionZone

func _on_interacted():
ScriptExecutor.debug_skill()
"

[node name="Room" instance=ExtResource("1_ls6vf")]
script = ExtResource("2_t8063")
room_id = "CV_Outdoors"
Expand All @@ -32,7 +25,7 @@ layer_3/tile_data = PackedInt32Array(-3276870, 65544, 1, -3211334, 65544, 1, -31
layer_4/tile_data = PackedInt32Array(1179657, 65542, 1, 1114121, 65542, 1, 1048585, 65542, 1, 983049, 65542, 1, 917513, 65542, 1, 1179656, 65542, 1, 1114120, 65542, 1, 1048584, 65542, 1, 983048, 65542, 1, 917512, 65542, 1, 1179655, 65542, 1, 1114119, 65542, 1, 1048583, 65542, 1, 983047, 65542, 1, 917511, 65542, 1, 1179654, 65542, 1, 1114118, 65542, 1, 1048582, 65542, 1, 983046, 65542, 1, 917510, 65542, 1, 1179653, 65542, 1, 1114117, 65542, 1, 1048581, 65542, 1, 983045, 65542, 1, 917509, 65542, 1, 1179652, 65542, 1, 1114116, 65542, 1, 1048580, 65542, 1, 983044, 65542, 1, 917508, 65542, 1, 1179651, 65542, 1, 1114115, 65542, 1, 1048579, 65542, 1, 983043, 65542, 1, 917507, 65542, 1, 983042, 6, 1, 917506, 6, 1, 851970, 6, 0, 851971, 65542, 0, 851972, 65542, 0, 1048578, 6, 1, 1114114, 6, 1, 1179650, 6, 1, 1245188, 65542, 2, 1245187, 65542, 2, 1245186, 6, 2, 851973, 65542, 0, 1245189, 65542, 2, 851974, 65542, 0, 1245190, 65542, 2, 851975, 65542, 0, 1245191, 65542, 2, 851976, 65542, 0, 1245192, 65542, 2, 851977, 65542, 0, 1245193, 65542, 2, 917514, 131078, 1, 983050, 131078, 1, 851978, 131078, 0, 1048586, 131078, 1, 1114122, 131078, 1, 1179658, 131078, 1, 1245194, 131078, 2)

[node name="Mouse1" parent="." index="1" instance=ExtResource("2_2qq46")]
position = Vector2(1120, 336)
position = Vector2(912, 136)

[node name="WaterZone" parent="." index="2" instance=ExtResource("3_bqhqn")]
position = Vector2(416, 1056)
Expand Down Expand Up @@ -207,12 +200,6 @@ position = Vector2(520, -888)
[node name="WoodenCrateTrio" parent="EthanHouse" index="2" instance=ExtResource("11_8dx4e")]
position = Vector2(64, -544)

[node name="DebugSkill" parent="EthanHouse/WoodenCrateTrio" index="2" instance=ExtResource("4_vwc65")]
prompt_translation_key = "DEBUG"
position = Vector2(0, 32)
scale = Vector2(1.02, 0.5)
script = SubResource("GDScript_p08up")

[node name="TrashCan" parent="EthanHouse" index="3" instance=ExtResource("12_skh3g")]
position = Vector2(632, -744)

Expand All @@ -221,5 +208,3 @@ interaction_id = "Check Trash"
prompt_translation_key = "CHECK"
position = Vector2(0, 8)
scale = Vector2(1.02, 0.5)

[connection signal="interacted" from="EthanHouse/WoodenCrateTrio/DebugSkill" to="EthanHouse/WoodenCrateTrio/DebugSkill" method="_on_interacted"]
3 changes: 0 additions & 3 deletions pets-lib/dg/src/debug-menu.dg
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ NAME Agent Cascade

Alright then. How about these?

> Skill Desc
$ debug_skill()

> Pauses
@ Debug Menu >> Pauses

Expand Down
38 changes: 0 additions & 38 deletions pets-lib/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,44 +69,6 @@ impl ScriptExecutor {
start_ix("Intro #4 >> Bed Color Picked");
}

#[func]
fn debug_skill() {
end_ix();

let skill1 = AttackSkill {
tr_key: "SKILL_ATTACK_FIRE_DMG_NAME".to_owned(),
element: Element::Fire,
power: Some(1),
plural: true,
status_effect: None,
};

let aff = {
let mut map = HashMap::new();
map.insert(Element::Fire, AffinityPower::Weak);
map.insert(Element::Fuzz, AffinityPower::Strong);
map.insert(Element::Wind, AffinityPower::Nullify);
map.insert(Element::Spirit, AffinityPower::Heal);
map.insert(Element::Ice, AffinityPower::Reflect);
Affinities::new(map)
};

let skill2 = ShieldSkill {
affinity: aff,
hits: 1,
multiplier: 0.2,
reflect: false,
plural: false,
};

start_ix_replace("Debug Menu >> Skill", &[
("{SKILL_NAME1}".to_owned(), skill1.name()),
("{SKILL_DESC1}".to_owned(), skill1.description()),
("{SKILL_NAME2}".to_owned(), skill2.name()),
("{SKILL_DESC2}".to_owned(), skill2.description()),
]);
}

#[func]
fn debug_battle() {
end_ix();
Expand Down

0 comments on commit b04850b

Please sign in to comment.