harvest/game/resources/game_config.tres
Forrest ca8601029e Task #17: Propane Torch sprays a band of fire
Hit test: _band_hit replaces the torch's cone. It hits the enemies in a
torch_width (1.6 m) wide band along the gun's line, from the scarecrow's
center out to torch_range (4.5 m) past the muzzle, each enemy's hit radius
added. The nearest torch_targets with a clear line are hit; _cone_hit and
_band_hit share _hit_nearest. torch_arc is gone, and the torch joins
MUZZLE_WEAPONS so scripted aim matches the mouse.

Flame: TorchFlame (CPUParticles3D jet plus a flickering light) is sized to
the band. WeaponModels gains a reusable held-effect pattern for #18:
- add_held_effect / lit / douse / advance.
- attack() lights the effect for HOLD_TICKS (1.5) tick intervals instead
  of replaying the kick.
- douse() puts it out the moment fire is let go; it then fades for the
  particle lifetime.
- Timers run on the sim clock (ScarecrowCombat.tick), or on physics frames
  when nothing advances them. That covers the other scarecrow on the
  partner's machine, which the existing "attack" events light, so there is
  no protocol change.

Sound: a new burned signal and a "burn" cue (synth torch_roar.wav,
generated by synth_audio.gd with its own seed) replace the pitchfork's
stab sound.

Tests (test_weapons): band in, beside, behind and beyond; a melee hugger
is burned; held fire over 5 intervals ticks 5 times and stops on release;
the flame is lit at every step while held and hidden after release; the
replica and attack-event paths; the flame follows the model's yaw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 13:04:54 -04:00

217 lines
3.6 KiB
Text

[gd_resource type="Resource" script_class="GameConfig" format=3 uid="uid://cqvl4hhgydj86"]
[ext_resource type="Script" uid="uid://bow5a4dimtdto" path="res://game/scripts/game_config.gd" id="1_cfg"]
[resource]
script = ExtResource("1_cfg")
costs = {
"alien_ray": {
"alien_goop": 6,
"scrap": 10
},
"automated_defense": {
"scrap": 6,
"straw": 2,
"wood": 2
},
"corn_shooter": {
"scrap": 10,
"wood": 4
},
"fence": {
"wood": 2
},
"gate": {
"scrap": 1,
"wood": 4
},
"heavy_seeds": {
"scrap": 14,
"straw": 10
},
"long_range": {
"scrap": 14,
"wood": 10
},
"patch": {
"straw": 2
},
"potato_cannon": {
"scrap": 14,
"wood": 8
},
"pouch_upgrade": {
"straw": 8,
"wood": 10
},
"propane_torch": {
"scrap": 12,
"straw": 4,
"wood": 6
},
"pumpkin_bomb": {
"scrap": 6,
"straw": 12
},
"quick_fear": {
"scrap": 6,
"straw": 16
},
"radar": {
"scrap": 8,
"wood": 6
},
"rapid_fire": {
"scrap": 12,
"straw": 12,
"wood": 8
},
"reinforced_fences": {
"scrap": 6,
"wood": 20
},
"shurikens": {
"scrap": 6,
"straw": 4
},
"slowing_trap": {
"scrap": 3,
"wood": 1
},
"sprint": {
"straw": 6,
"wood": 8
},
"sticky_tar": {
"scrap": 6,
"straw": 14
},
"straw_stuffing": {
"straw": 12,
"wood": 4
},
"wide_fear": {
"straw": 20,
"wood": 4
},
"workbench": {
"scrap": 4,
"wood": 6
}
}
upgrades = {
"alien_ray": {
"hidden": true,
"name": "Alien ray",
"shop": "shed",
"text": "A salvaged alien weapon: a fast, powerful beam",
"track": "Weapon"
},
"corn_shooter": {
"name": "Corn shooter",
"shop": "shed",
"text": "A gun that fires corn kernels, from afar",
"track": "Weapon"
},
"heavy_seeds": {
"add": 1,
"name": "Heavy seeds",
"requires": "corn_shooter",
"stat": "shot_damage",
"text": "Each kernel does 2 damage",
"track": "Weapon"
},
"long_range": {
"mult": 1.3,
"name": "Long-range defenses",
"stat": "turret_range",
"text": "Turrets reach 30% farther",
"track": "Defenses"
},
"potato_cannon": {
"name": "Potato cannon",
"shop": "shed",
"text": "A slow heavy potato shot that hits hard from afar",
"track": "Weapon"
},
"pouch_upgrade": {
"add": 8,
"name": "Bigger pouch",
"stat": "pouch_capacity",
"text": "+8 pouch capacity (16 total)",
"track": "Scarecrow"
},
"propane_torch": {
"name": "Propane torch",
"shop": "shed",
"text": "A jet of flame that burns everything in a band ahead of you while held",
"track": "Weapon"
},
"pumpkin_bomb": {
"name": "Pumpkin bombs",
"shop": "shed",
"text": "Throw a pumpkin that bursts, hurting everything within 3 m (one every 4 s)",
"track": "Weapon"
},
"quick_fear": {
"mult": 0.8,
"name": "Quick fear",
"stat": "fear_cooldown",
"text": "Fear recharges 20% faster",
"track": "Fear"
},
"radar": {
"hidden": true,
"name": "Radar",
"shop": "shed",
"text": "A minimap showing nearby enemy positions",
"track": "Item"
},
"rapid_fire": {
"mult": 3.0,
"name": "Rapid fire",
"requires": "corn_shooter",
"stat": "fire_rate",
"text": "The corn shooter fires 3x faster!!!!!",
"track": "Weapon"
},
"reinforced_fences": {
"mult": 1.5,
"name": "Reinforced fences",
"stat": "barrier_hp",
"text": "Fences and gates +50% health",
"track": "Defenses"
},
"shurikens": {
"name": "Shurikens",
"shop": "shed",
"text": "Fast, cheap throws for a quick hit",
"track": "Weapon"
},
"sprint": {
"name": "Sprint",
"text": "Sprint 80% faster for 4 s at a time, every 10 s",
"track": "Scarecrow"
},
"sticky_tar": {
"mult": 1.5,
"name": "Sticky tar",
"stat": "trap_slow_time",
"text": "Tar patches hold 50% longer",
"track": "Defenses"
},
"straw_stuffing": {
"add": 2,
"name": "Straw stuffing",
"stat": "scarecrow_max_hp",
"text": "+2 max health",
"track": "Scarecrow"
},
"wide_fear": {
"mult": 1.3,
"name": "Wide fear",
"stat": "fear_radius",
"text": "Fear reaches 30% farther",
"track": "Fear"
}
}