Difference between revisions of "Noise"

From CrawlWiki
Jump to: navigation, search
(Ranged combat)
(fixup, oops)
 
(18 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{version011}}
+
{{version014}}
 +
*Note: ''Severely'' outdated. Noise now spreads in a square, many branches have been changed, noise meter added
  
'''Noise''' in the dungeon can wake [[sleep]]ing monsters.  Monsters that hear a sound will generally [[wander]] toward it; if you get involved in a fight, monsters can come from all different directions to see what the fuss is about, potentially overwhelming you.
+
'''Noise''' in the dungeon can wake [[sleep]]ing monsters.  Monsters that hear a sound will generally wander toward it; if you get involved in a fight, monsters can come from all different directions to see what the fuss is about, potentially overwhelming you.
  
 
== Noise propagation ==
 
== Noise propagation ==
When a noisy action happens at a position, the noise will propagate to all the adjacent cells. Each time it advances a cell, the intensity suffers an attenuation. When the intensity or loudness, reaches a value less than 1, the noise is inaudible and it won't propagate further.
+
When a noisy action happens at a position, the noise will propagate to all the adjacent cells. Each time it advances a cell, the intensity suffers an attenuation. When the intensity reaches a value less than 1, the noise is inaudible and it won't propagate further.
  
 
The attenuation depends on the following factors:
 
The attenuation depends on the following factors:
Line 23: Line 24:
 
     | Permanent wall || -infinity
 
     | Permanent wall || -infinity
 
     |}
 
     |}
* The direction: In diagonal, the attenuation is 41% higher (sqrt(2)~1.41).
 
  
 
This means that in open areas the radius of the area affected by a noise is: loudness/0.85 = loudness*1.176.
 
This means that in open areas the radius of the area affected by a noise is: loudness/0.85 = loudness*1.176.
  
 
The following picture was generated by compiling the game with the option DEBUG_NOISE_PROPAGATION enabled. It shows which squares are affected by a simple shout. In this case, the intensity was 12 and the ambient noise was 0.
 
The following picture was generated by compiling the game with the option DEBUG_NOISE_PROPAGATION enabled. It shows which squares are affected by a simple shout. In this case, the intensity was 12 and the ambient noise was 0.
 +
 +
Beware that this picture is based on the old noise model where noise propagates less far on diagonals. Now, the area would be approximately square.
  
 
[[ File:Noise_grid_example.png]]
 
[[ File:Noise_grid_example.png]]
Line 42: Line 44:
 
| The [[Temple]] || 0
 
| The [[Temple]] || 0
 
|-
 
|-
| The [[Orcish Mines]] || 4
+
| The [[Orcish Mines]] || 0
 
|-
 
|-
 
| The [[Elven Halls]] || 0
 
| The [[Elven Halls]] || 0
 
|-
 
|-
| [[The Lair]] || 3
+
| [[The Lair]] || 0
 
|-
 
|-
 
| [[The Snake Pit]] || 0
 
| [[The Snake Pit]] || 0
Line 57: Line 59:
 
|-
 
|-
 
| [[The Slime Pits]] || -5
 
| [[The Slime Pits]] || -5
 +
|-
 +
| [[The Depths]] || 0
 
|-
 
|-
 
| [[The Vaults]] || 0
 
| [[The Vaults]] || 0
Line 62: Line 66:
 
| [[Hall of Blades]] || -7
 
| [[Hall of Blades]] || -7
 
|-
 
|-
| [[The Crypt]] || -20
+
| [[The Crypt]] || -3
 
|-
 
|-
 
| [[The Tomb]] || -10
 
| [[The Tomb]] || -10
Line 74: Line 78:
 
| [[Portals]] || 0
 
| [[Portals]] || 0
 
|}
 
|}
 +
 +
In most branches, this effect is minimal. Certain branches, however (the [[Tomb]] in particular), greatly amplify even the slightest noise. While characters in heavy armour probably won't care, stealthy characters that are used to sneaking around will find that even the noise generated by their attacks attracts attention.
  
 
==Sources of noise==
 
==Sources of noise==
Line 84: Line 90:
 
Other sources of noise in melee combat:
 
Other sources of noise in melee combat:
 
* [[#Auxiliary_attacks|Auxiliary attacks]]
 
* [[#Auxiliary_attacks|Auxiliary attacks]]
* Attacking with a weapon of [[electrocution]] in shallow or deep water: 15 (1 chance in 3)
+
* Noisy [[randart]]s: 20 (1 chance in 20)
 
* Attacking with a weapon of [[chaos]]: 15 (1 chance in 200)
 
* Attacking with a weapon of [[chaos]]: 15 (1 chance in 200)
  
Line 90: Line 96:
 
The base value of noise_factor depends on the damage type of your weapon: 150 for [[unarmed combat]]; 125 for slashing or crushing; 100 for slicing or chopping; 75 for piercing or stabbing. If your weapon has multiple damage types, the game will chose one of them randomly (you can look up the damage types of any weapon [[Weapon#Weapon_details|here]]).
 
The base value of noise_factor depends on the damage type of your weapon: 150 for [[unarmed combat]]; 125 for slashing or crushing; 100 for slicing or chopping; 75 for piercing or stabbing. If your weapon has multiple damage types, the game will chose one of them randomly (you can look up the damage types of any weapon [[Weapon#Weapon_details|here]]).
  
After obtaining the base value, an amount is added for some weapon brands:
 
* weapons of [[flaming]]: noise_factor is increased by 400/max(1, damage_done).
 
* weapons of [[electrocution]]: noise_factor is increased by 800/max(1, damage_done).
 
 
====Auxiliary attacks====
 
====Auxiliary attacks====
 
If you get an [[auxiliary attack]], that attack also makes noise and its noise factor is:
 
If you get an [[auxiliary attack]], that attack also makes noise and its noise factor is:
Line 126: Line 129:
 
! Launcher !! Loudness
 
! Launcher !! Loudness
 
|-
 
|-
| None || 0
+
| None (i.e. [[Throwing]])|| 0
 
|-
 
|-
 
| [[Blowgun]] || 0
 
| [[Blowgun]] || 0
 
|-
 
|-
| [[Sling]] || 1
+
| [[Hunting sling]] || 1
 
|-
 
|-
| [[Bow]] || 5
+
| [[Greatsling]] || 3
 +
|-
 +
| [[Shortbow]] || 5
 
|-
 
|-
 
| [[Longbow]] || 6
 
| [[Longbow]] || 6
 
|-
 
|-
| [[Crossbow]] || 7
+
| [[Hand crossbow]] || 2
 +
|-
 +
| [[Arbalest]] || 7
 +
|-
 +
| [[Triple crossbow]] || 9
 
|}
 
|}
  
The noise generated by the missile itself depends on the mass of the item. It is sqrt(10*mass/3)+0.5. It is generated at the last square it reached, even if don't hit anything.
+
The noise generated by the missile itself depends on the base damage of the item. It is damage/3, rounded down. It is generated at the last square it reached, even if doesn't hit anything.
  
 
{| class="prettytable" style="border:none; margin:0; padding:0; width:18em;"
 
{| class="prettytable" style="border:none; margin:0; padding:0; width:18em;"
Line 145: Line 154:
 
! Missile !! Loudness
 
! Missile !! Loudness
 
|-
 
|-
| [[Needle]] || 0
+
| [[Tomahawk]] || 2
 
|-
 
|-
| [[Stone]] || 1
+
| [[Javelin]] || 3
 
|-
 
|-
| [[Dart]] || 1
+
| [[Large rock]] || 7
 
|-
 
|-
| [[Arrow]] || 1
+
| [[Throwing net]] || 0
 
|-
 
|-
| [[Bolt]] || 1
+
| [[Needle]] || 0
 
|-
 
|-
| [[Large rock]] || 14
+
| [[Stone]] || 1
 
|-
 
|-
| [[Sling bullet]] || 1
+
| [[Sling bullet]] || 2
 
|-
 
|-
| [[Javelin]] || 5
+
| [[Arrow]] || 2
 
|-
 
|-
| [[Throwing net]] || 3
+
| [[Bolt]] || 3
 
|}
 
|}
  
 
Example: A character with a bow shoots an arrow. The destination is an empty cell.
 
Example: A character with a bow shoots an arrow. The destination is an empty cell.
 +
(Note that this image is out of date. The arrow would make 1 more noise in recent versions.)
  
 
[[File:Noise-grid-ranged-combat.png]]
 
[[File:Noise-grid-ranged-combat.png]]
Line 180: Line 190:
  
 
===Other sources===
 
===Other sources===
 +
*[[Qazlal]] worshipper at piety ******: 16
 
*[[Scroll of noise]]: 25
 
*[[Scroll of noise]]: 25
*Noisy [[artefact]] weapons: 25 (5% chance each turn, only while wielding the weapon)
+
*The [[Singing Sword]]: 0-35 depending on [[tension]].
*[[List_of_unrands#.2B7.2C_.2B7_Singing_Sword|The Singing Sword]]: 0-35 depending on [[tension]].
+
*Blocking an attack with the [[Shield of the Gong]]: 40
*Blocking an attack with [[List_of_unrands#.2B6_Shield_of_the_Gong|the Shield of the Gong]]: 40
 
 
*Monster shouts
 
*Monster shouts
*Creaking doors: 10 (1 chance in Dex + Traps&Doors + Stealth/2; "As you open/close the door, it creaks loudly!")
+
*Monster spells with the [[Spell slot flag|Noisy flag]]
*[[Alarm trap]]s: 12 (30 in Zotdef)
+
*Creaking doors: 10 (1 chance in [[Dexterity]] + [[Traps]] + [[Stealth]]/2; "As you open/close the door, it creaks loudly!")
 +
*[[Alarm trap]]s: 40
 +
*Using the [[Horn of Geryon]]: 15
 +
 
 +
==History==
 +
Prior to [[0.19]], the Lair's ambient noise was 4, and the Orcish Mines's was 3
  
 +
Prior to [[0.13]], the Crypt's ambient noise was -20.
  
 
[[Category:Game mechanics]]
 
[[Category:Game mechanics]]

Latest revision as of 21:29, 19 October 2024

Version 0.14: This article may not be up to date for the latest stable release of Crawl.
  • Note: Severely outdated. Noise now spreads in a square, many branches have been changed, noise meter added

Noise in the dungeon can wake sleeping monsters. Monsters that hear a sound will generally wander toward it; if you get involved in a fight, monsters can come from all different directions to see what the fuss is about, potentially overwhelming you.

Noise propagation

When a noisy action happens at a position, the noise will propagate to all the adjacent cells. Each time it advances a cell, the intensity suffers an attenuation. When the intensity reaches a value less than 1, the noise is inaudible and it won't propagate further.

The attenuation depends on the following factors:

  • The cell type:
Cell type Attenuation
Empty -0.85
Statue or Idol -1.70
Tree or Mangrove -2.55
Closed/Secret door -6.80
Wall -10.20
Permanent wall -infinity

This means that in open areas the radius of the area affected by a noise is: loudness/0.85 = loudness*1.176.

The following picture was generated by compiling the game with the option DEBUG_NOISE_PROPAGATION enabled. It shows which squares are affected by a simple shout. In this case, the intensity was 12 and the ambient noise was 0.

Beware that this picture is based on the old noise model where noise propagates less far on diagonals. Now, the area would be approximately square.

Noise grid example.png

Ambient noise

Ambient noise makes sounds harder to hear. This idea is implemented in the game by adding, or subtracting, a branch-specific amount to loudness. The effective loudness is:

effective_loudness = loudness - sgn(ambient_noise)×{3d(abs(ambient_noise))/3 - 1}
Branch Ambient noise
The Dungeon 0
The Temple 0
The Orcish Mines 0
The Elven Halls 0
The Lair 0
The Snake Pit 0
The Swamp 0
The Shoals 3
The Spider's Nest 0
The Slime Pits -5
The Depths 0
The Vaults 0
Hall of Blades -7
The Crypt -3
The Tomb -10
The Hells 0
The Realm of Zot 0
Pandemonium 0
Portals 0

In most branches, this effect is minimal. Certain branches, however (the Tomb in particular), greatly amplify even the slightest noise. While characters in heavy armour probably won't care, stealthy characters that are used to sneaking around will find that even the noise generated by their attacks attracts attention.

Sources of noise

Melee combat

A successful stabbing is always silent, otherwise the loudness is:

 noise_factor * damage_done / 400

This value is capped at 12. Noise is generated even if you miss your attack (in that case loudness is 1).

Other sources of noise in melee combat:

Calculation of noise_factor

The base value of noise_factor depends on the damage type of your weapon: 150 for unarmed combat; 125 for slashing or crushing; 100 for slicing or chopping; 75 for piercing or stabbing. If your weapon has multiple damage types, the game will chose one of them randomly (you can look up the damage types of any weapon here).

Auxiliary attacks

If you get an auxiliary attack, that attack also makes noise and its noise factor is:

Auxiliary Attack noise_factor
Constriction 10
Kick 100
Headbutt 100
Beak 75
Tail Slap, Stinger 125
Punch, Claws 100 (75 if Blade Hands is active; 125 if you have tentacles)
Bite 75
Pseudopods 125
Tentacles 100

Ranged combat

There are two sources of noise when you shoot a projectile: the launcher and the missile.

The noise generated by the launcher is always made at your position even if you miss the shot.

Launcher Loudness
None (i.e. Throwing) 0
Blowgun 0
Hunting sling 1
Greatsling 3
Shortbow 5
Longbow 6
Hand crossbow 2
Arbalest 7
Triple crossbow 9

The noise generated by the missile itself depends on the base damage of the item. It is damage/3, rounded down. It is generated at the last square it reached, even if doesn't hit anything.

Missile Loudness
Tomahawk 2
Javelin 3
Large rock 7
Throwing net 0
Needle 0
Stone 1
Sling bullet 2
Arrow 2
Bolt 3

Example: A character with a bow shoots an arrow. The destination is an empty cell. (Note that this image is out of date. The arrow would make 1 more noise in recent versions.)

Noise-grid-ranged-combat.png

Spell noise

See spell noise.

Player shouts

Other sources

History

Prior to 0.19, the Lair's ambient noise was 4, and the Orcish Mines's was 3

Prior to 0.13, the Crypt's ambient noise was -20.