Difference between revisions of "User:Aximili/Test"

From NetHackWiki
Jump to navigation Jump to search
(cleanup)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{otheruses||special rooms in SLASH'EM|Special room (SLASH'EM)}}
+
[[SpliceHack]] is one of the many [[variant]]s with an [[object materials]] system, allowing items of the same type to be made of different [[material]]s. For example, in SpliceHack one [[skeleton key]] might be made of [[plastic]], and another might be made of [[mithril]].
{{otheruses||special rooms in UnNetHack|Special room (UnNetHack)}}
 
{{otheruses||special rooms in dNetHack|Special room (dNetHack)}}
 
  
A '''special room''' is different from the normal rooms of the randomly-generated [[dungeon]]. For example, it might contain a shop or a collection of monsters. They only appear in random rooms-and-corridors levels in the [[Dungeons of Doom]], not in mazes or cavern levels.
+
== Materials properties ==
 +
Each material has a relative [[weight]], internally called a density. Each material also has a relative [[AC]] bonus. Some materials are subject to [[erosion]]: the types of possible erosion vary between materials.
  
NetHack attempts to generate most special rooms on a level in the order they appear in the below table. Rooms lower on the table can only be generated if all rooms higher on the table failed to generate. For example, a temple is created with probability 1/5 from level 9 on in an ordinary rooms-and-corridors level in the main dungeon, provided the level does not already have a shop, a throne room, a leprechaun hall or a zoo.{{refsrc|mklev.c|735}}
+
{|class="wikitable sortable"
 +
! Material
 +
! Density<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L1538</ref>
 +
! AC<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L1667</ref>
 +
! Erosion Type<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/include/objclass.h#L93</ref><ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/include/objclass.h#L96</ref><ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L1976</ref><ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L1982</ref>
  
Vaults are an exception: they are generated independently of other special rooms.
+
|-
 +
|[[liquid]]    ||  10 ||  0 ||
 +
|-
 +
|[[wax]]        ||  15 ||  1 ||style="background-color:#ffbf00"| burn, rot
 +
|-
 +
|[[veggy]]      ||  10 ||  1 ||style="background-color:#ffbf00"| burn, rot
 +
|-
 +
|[[flesh]]      ||  10 ||  3 ||style="background-color:#ffbf00"| burn, rot
 +
|-
 +
|[[paper]]      ||  5 ||  1 ||style="background-color:#ffbf00"| burn, rot
 +
|-
 +
|[[cloth]]      ||  10 ||  2 ||style="background-color:#ffbf00"| burn, rot
 +
|-
 +
|[[leather]]    ||  15 ||  3 ||style="background-color:#ffbf00"| burn, rot
 +
|-
 +
|[[wood]]      ||  30 ||  4 ||style="background-color:#ffbf00"| burn, rot
 +
|-
 +
|[[bone]]      ||  25 ||  4 ||
 +
|-
 +
|[[dragonhide]] ||  20 || 10 ||
 +
|-
 +
|[[iron]]      ||  80 ||  5 ||style="background-color:pink"| corrode, rust
 +
|-
 +
|[[metal]]      ||  70 ||  5 ||
 +
|-
 +
|[[copper]]    ||  85 ||  4 ||style="background-color:pink"| corrode
 +
|-
 +
|[[silver]]    ||  90 ||  5 ||
 +
|-
 +
|[[gold]]      || 120 ||  3 ||
 +
|-
 +
|[[platinum]]  || 120 ||  4 ||
 +
|-
 +
|[[adamantine]] ||  60 ||  7 ||
 +
|-
 +
|[[cold iron]]  ||  80 ||  5 ||style="background-color:pink"| rust
 +
|-
 +
|[[mithril]]    ||  50 ||  6 ||
 +
|-
 +
|[[orichalcum]] ||  90 ||  6 ||
 +
|-
 +
|[[plastic]]    ||  20 ||  3 ||style="background-color:#ffbf00"| burn
 +
|-
 +
|[[slime]]      ||  50 ||  3 ||
 +
|-
 +
|[[glass]]      ||  60 ||  5 ||
 +
|-
 +
|[[gemstone]]  ||  55 ||  7 ||
 +
|-
 +
|[[shadow]]    ||  1 ||  3 ||
 +
|-
 +
|[[mineral]]    ||  70 ||  6 ||
 +
|}
 +
 
 +
== Materials percentages ==
 +
The tables in this section show the probabilities of items being generated as a different material than normal.
 +
 
 +
The table immediately below applies to most [[weapon]]s, [[weapon-tool]]s and [[armor]].<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3429</ref> [[Chest]]s, [[large box]]es and [[mask]]s also count as "normally wooden",<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3386</ref> while [[skeleton key]]s, [[lock pick]]s and [[tin opener]]s count as "normally metal".<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3390</ref>
 +
{|class="wikitable sortable"
 +
! Material
 +
! Normally iron or metal<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3195</ref>
 +
! Normally wooden<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3248</ref>
 +
! Normally cloth<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3261</ref>
 +
! Normally leather<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3272</ref>
 +
|-
 +
|keep default ||  74.0 ||      ||      ||     
 +
|-
 +
|wax          ||  0.1 ||  0.1 ||  0.1 ||  0.1
 +
|-
 +
|paper        ||  0.1 ||  1.0 ||  2.7 ||  1.0
 +
|-
 +
|cloth        ||      ||      ||  79.9 ||  17.0
 +
|-
 +
|leather      ||      ||      ||  10.0 ||  74.7
 +
|-
 +
|wood        ||  5.0 ||  78.8 ||      ||     
 +
|-
 +
|bone        ||  1.0 ||  3.0 ||      ||     
 +
|-
 +
|iron        ||  4.9 ||  5.0 ||      ||     
 +
|-
 +
|copper      ||  3.0 ||  1.0 ||      ||     
 +
|-
 +
|silver      ||  5.0 ||  1.0 ||      ||     
 +
|-
 +
|gold        ||  1.0 ||      ||      ||     
 +
|-
 +
|adamantine  ||  0.1 ||      ||      ||     
 +
|-
 +
|cold iron    ||  0.1 ||      ||      ||     
 +
|-
 +
|mithril      ||  3.0 ||      ||      ||     
 +
|-
 +
|orichalcum  ||  0.1 ||      ||      ||     
 +
|-
 +
|plastic      ||  0.8 ||      ||  7.0 ||  6.9
 +
|-
 +
|slime        ||  0.1 ||  0.1 ||  0.1 ||  0.1
 +
|-
 +
|glass        ||  1.0 ||      ||      ||     
 +
|-
 +
|gemstone    ||  0.1 ||      ||      ||     
 +
|-
 +
|shadow      ||  0.1 ||      ||  0.2 ||  0.2
 +
|-
 +
|mineral      ||  0.5 ||  10.0 ||      ||     
 +
|}
  
{|class="prettytable"
+
In the following table, "shiny" items include the [[shield of reflection]], [[resonant shield]], [[ornate mace]], [[chakram]], and most [[amulet]]s.<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3373</ref><ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3424</ref> "Resonant" items are the [[bugle]], [[lantern]], [[oil lamp]], [[magic lamp]], [[magic whistle]], [[flute]], [[magic flute]], [[harp]], [[magic harp]] and [[lute]]. <ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3395</ref>
! Name !! Min [[Dungeon Level|DL]] !! Frequency !! Generation restrictions
+
{|class="wikitable sortable"
 +
! Material
 +
! firearms<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3218</ref>
 +
! shiny<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3231</ref>
 +
! resonant<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3307</ref>
 
|-
 
|-
| [[Shop]] || 2 || 3/DL || Must be above [[Medusa's Island]], room must have 1 door and no stairs
+
|keep default ||       ||       || 54.3
 
|-
 
|-
| [[Throne room]] || 5 || 1/6 ||
+
|iron        || 64.5 || 12.0 ||   5.0
 
|-
 
|-
| [[Leprechaun hall]] || 6 || 1/8 || [[Leprechaun]]s not genocided/extinct
+
|metal        ||       ||   5.0 ||      
 
|-
 
|-
| [[Zoo]] || 7 || 1/7 ||
+
|copper      || 12.5 || 22.0 || 25.0
 
|-
 
|-
| [[Temple]] || 9 || 1/5 ||
+
|silver      || 12.5 || 29.5 ||   6.0
 
|-
 
|-
| [[Beehive]] || 10 || 1/5 || [[Bee]]s not genocided/extinct
+
|gold        ||   1.0 || 10.0 ||   3.0
 
|-
 
|-
| [[Graveyard]] || 12 || 1/6 ||
+
|platinum    ||   1.0 ||   1.8 ||   1.0
 
|-
 
|-
| [[Anthole]] || 13 || 1/8 || [[Ant]]s not genocided/extinct
+
|adamantine  ||   0.5 ||   0.5 ||   0.1
 
|-
 
|-
| [[Barracks]] || 15 || 1/4 || [[Soldier]]s not extinct
+
|cold iron    ||       ||       ||      
 
|-
 
|-
| [[Swamp]] || 16 || 1/6 ||
+
|mithril      ||   7.0 ||   7.0 ||   5.0
 
|-
 
|-
| [[Cockatrice nest]] || 17 || 1/8 || [[Cockatrice]]s not genocided/extinct
+
|orichalcum  ||   1.0 ||   0.1 ||   0.1
 
|-
 
|-
| [[Vault]]s ||  || || (Generated independently of other special rooms)
+
|slime        ||      ||  0.1 ||     
 +
|-
 +
|glass        ||      ||  12.0 ||     
 +
|-
 +
|gemstone    ||      ||       ||   0.5
 
|}
 
|}
  
== References ==
+
The following table applies to all [[Dwarf#Dwarvish_items|dwarven item]]s and [[Elf_(starting_race)#Elven_items|elven items]] except the [[elven leather helm|elven helm]] (and [[lembas wafer]]).
<references/>
+
{|class="wikitable sortable"
 +
! Material
 +
! dwarven<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3283</ref>
 +
! elven<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3297</ref>
 +
<!-- orcish -->
 +
|-
 +
|wood        ||      ||  79.9
 +
|-
 +
|dragonhide  ||      ||     
 +
|-
 +
|iron        ||  84.5 ||     
 +
|-
 +
|metal        ||      ||     
 +
|-
 +
|copper      ||  2.0 ||  10.0
 +
|-
 +
|silver      ||  1.0 ||  3.0
 +
|-
 +
|gold        ||  1.0 ||  2.0
 +
|-
 +
|platinum    ||  0.9 ||     
 +
|-
 +
|adamantine  ||  0.2 ||     
 +
|-
 +
|mithril      ||  9.8 ||  5.0
 +
|-
 +
|orichalcum  ||  0.1 ||     
 +
|-
 +
|gemstone    ||  0.5 ||     
 +
|-
 +
|shadow      ||      ||  0.1
 +
|}
 +
 
 +
The following table has a couple of exceptions for specific groups of items.
 +
{|class="wikitable sortable"
 +
! Material
 +
! horns<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3320</ref>
 +
! elven helm<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3334</ref>
 +
! bows<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3340</ref>
 +
|-
 +
|leather      ||      ||  70.0 ||     
 +
|-
 +
|wood        ||  5.0 ||  9.9 ||  75.0
 +
|-
 +
|bone        ||  68.5 ||      ||  4.0
 +
|-
 +
|iron        ||      ||      ||  7.0
 +
|-
 +
|copper      ||  10.0 ||  20.0 ||  4.0
 +
|-
 +
|silver      ||  5.0 ||      ||  2.0
 +
|-
 +
|gold        ||  1.5 ||      ||  1.0
 +
|-
 +
|adamantine  ||  0.5 ||      ||     
 +
|-
 +
|mithril      ||  8.0 ||      ||  5.0
 +
|-
 +
|orichalcum  ||  0.5 ||      ||     
 +
|-
 +
|plastic      ||      ||      ||  2.0
 +
|-
 +
|gemstone    ||  0.5 ||      ||     
 +
|-
 +
|shadow      ||  0.5 ||  0.1 ||     
 +
|-
 +
|mineral      ||      ||      ||     
 +
|}
 +
 
 +
Finally, the [[bullwhip]], [[flaming lash]]<ref>https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3369</ref> and all items not categorized above are only generated in their base materials. This means all [[comestible]]s, [[potion]]s, [[scroll]]s and [[spellbook]]s are only available in their base materials.
  
== External links ==
+
== Changing materials ==
* More information at http://www.steelypips.org/nethack/343/room-343.html
+
Items can change materials through contact with a [[transmuter (SpliceHack)|transmuter]] or the reading of a [[scroll of change material]].  
  
{{nethack-366}}
+
== References ==
[[Category:Special rooms| ]]
+
<References />

Latest revision as of 08:27, 3 May 2022

SpliceHack is one of the many variants with an object materials system, allowing items of the same type to be made of different materials. For example, in SpliceHack one skeleton key might be made of plastic, and another might be made of mithril.

Materials properties

Each material has a relative weight, internally called a density. Each material also has a relative AC bonus. Some materials are subject to erosion: the types of possible erosion vary between materials.

Material Density[1] AC[2] Erosion Type[3][4][5][6]
liquid 10 0
wax 15 1 burn, rot
veggy 10 1 burn, rot
flesh 10 3 burn, rot
paper 5 1 burn, rot
cloth 10 2 burn, rot
leather 15 3 burn, rot
wood 30 4 burn, rot
bone 25 4
dragonhide 20 10
iron 80 5 corrode, rust
metal 70 5
copper 85 4 corrode
silver 90 5
gold 120 3
platinum 120 4
adamantine 60 7
cold iron 80 5 rust
mithril 50 6
orichalcum 90 6
plastic 20 3 burn
slime 50 3
glass 60 5
gemstone 55 7
shadow 1 3
mineral 70 6

Materials percentages

The tables in this section show the probabilities of items being generated as a different material than normal.

The table immediately below applies to most weapons, weapon-tools and armor.[7] Chests, large boxes and masks also count as "normally wooden",[8] while skeleton keys, lock picks and tin openers count as "normally metal".[9]

Material Normally iron or metal[10] Normally wooden[11] Normally cloth[12] Normally leather[13]
keep default 74.0
wax 0.1 0.1 0.1 0.1
paper 0.1 1.0 2.7 1.0
cloth 79.9 17.0
leather 10.0 74.7
wood 5.0 78.8
bone 1.0 3.0
iron 4.9 5.0
copper 3.0 1.0
silver 5.0 1.0
gold 1.0
adamantine 0.1
cold iron 0.1
mithril 3.0
orichalcum 0.1
plastic 0.8 7.0 6.9
slime 0.1 0.1 0.1 0.1
glass 1.0
gemstone 0.1
shadow 0.1 0.2 0.2
mineral 0.5 10.0

In the following table, "shiny" items include the shield of reflection, resonant shield, ornate mace, chakram, and most amulets.[14][15] "Resonant" items are the bugle, lantern, oil lamp, magic lamp, magic whistle, flute, magic flute, harp, magic harp and lute. [16]

Material firearms[17] shiny[18] resonant[19]
keep default 54.3
iron 64.5 12.0 5.0
metal 5.0
copper 12.5 22.0 25.0
silver 12.5 29.5 6.0
gold 1.0 10.0 3.0
platinum 1.0 1.8 1.0
adamantine 0.5 0.5 0.1
cold iron
mithril 7.0 7.0 5.0
orichalcum 1.0 0.1 0.1
slime 0.1
glass 12.0
gemstone 0.5

The following table applies to all dwarven items and elven items except the elven helm (and lembas wafer).

Material dwarven[20] elven[21]
wood 79.9
dragonhide
iron 84.5
metal
copper 2.0 10.0
silver 1.0 3.0
gold 1.0 2.0
platinum 0.9
adamantine 0.2
mithril 9.8 5.0
orichalcum 0.1
gemstone 0.5
shadow 0.1

The following table has a couple of exceptions for specific groups of items.

Material horns[22] elven helm[23] bows[24]
leather 70.0
wood 5.0 9.9 75.0
bone 68.5 4.0
iron 7.0
copper 10.0 20.0 4.0
silver 5.0 2.0
gold 1.5 1.0
adamantine 0.5
mithril 8.0 5.0
orichalcum 0.5
plastic 2.0
gemstone 0.5
shadow 0.5 0.1
mineral

Finally, the bullwhip, flaming lash[25] and all items not categorized above are only generated in their base materials. This means all comestibles, potions, scrolls and spellbooks are only available in their base materials.

Changing materials

Items can change materials through contact with a transmuter or the reading of a scroll of change material.

References

  1. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L1538
  2. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L1667
  3. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/include/objclass.h#L93
  4. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/include/objclass.h#L96
  5. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L1976
  6. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L1982
  7. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3429
  8. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3386
  9. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3390
  10. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3195
  11. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3248
  12. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3261
  13. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3272
  14. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3373
  15. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3424
  16. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3395
  17. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3218
  18. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3231
  19. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3307
  20. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3283
  21. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3297
  22. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3320
  23. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3334
  24. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3340
  25. https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/src/mkobj.c#L3369