Difference between revisions of "Apple"

From NetHackWiki
Jump to navigation Jump to search
(Add languages template.)
(spacing + var)
(2 intermediate revisions by 2 users not shown)
Line 11: Line 11:
 
}}
 
}}
  
An '''apple''' is a fruit that is suitable for [[vegan]]s and [[vegetarian]]s.
+
An '''apple''' is a type of [[veggy]] [[comestible]] that appears in ''[[NetHack]]''.
  
 
==Generation==
 
==Generation==
[[Healer]]s and [[Monk]]s start with at least 5 apples, and [[Knight]]s start with at least 10 apples.
+
[[Healer]]s and [[Monk]]s start each game with 5-10 apples.{{refsrc|src/u_init.c|70|nethack=3.6.7|comment=Healer starting inventory}}{{refsrc|src/u_init.c|93|nethack=3.6.7|comment=Monk starting inventory}} [[Knight]]s start each game with 10-20 apples.{{refsrc|src/u_init.c|93|nethack=3.6.7|comment=Knight starting inventory}} Tourists may start with apples among their random food items.{{refsrc|src/u_init.c|144|nethack=3.6.7|comment=Tourist starting inventory}}
  
==Effects==
+
[[Kick]]ing a tree has a one-time {{frac|14|15}} chance of dropping (8−[[rnl]](7)) fruits, which may be apples.{{refsrc|src/dokick.c|1115|nethack=3.6.7}} Cutting down a tree has a {{frac|5}} chance of producing a piece of fruit that can be an apple.{{refsrc|src/dig.c|398|nethack=3.6.7}} If a tree is [[tunnel]]ed through, there is a {{frac|3}} chance of fruit being left behind, which can be an apple.{{refsrc|src/dig.c|1321|nethack=3.6.7}}
When eaten, apples provide 50 [[nutrition]]. Pets that are [[herbivorous]] will consider it a [[treat]], and it can be used to tame [[horse]]s; domestic [[cat]]s and [[dog]]s are rendered peaceful.
 
  
In [[NetHack 3.6.0]] and later versions, eating a cursed apple will cause you to fall asleep for 20-30 turns if you lack [[sleep resistance]].{{refsrc|src/eat.c|2133|version=NetHack 3.6.0}}
+
[[Apply]]ing a [[charged]] [[horn of plenty]] has a 1.4% chance of generating an apple or two.{{refsrc|src/mkobj.c|2219|version=NetHack 3.6.7|comment=any comestible that can be randomly generated is eligible}}
  
== Strategy ==
+
==Description==
Apples are best saved for taming or feeding pets; knights in particular will want to prioritize taming their steed. However, if food proves especially scarce, then roles that start with apples may need to tide themselves over using them until permafood can be found.
+
When eaten, an apple provides 50 [[nutrition]] and takes 1 turn to consume - eating a cursed apple will also cause the [[hero]] to fall asleep for 20-30 turns if they lack [[sleep resistance]], and [[food appraisal]] will warn a hero if they are about to eat one.{{refsrc|src/eat.c|2253|version=NetHack 3.6.7}}{{refsrc|src/eat.c|2375|version=NetHack 3.6.7}}
  
Healers, Knights, and Monks might need to eat their apples before they can find other food.
+
Apples are vegan, and can be used to tame [[domestic]] [[herbivorous]] [[monster]]s and pacify domestic [[carnivore]]s - herbivorous pets will consider apples to be [[treat]]s.
  
== Messages ==
+
==Strategy==
 +
Apples are best saved for taming or feeding pets, and Knights in particular will want to prioritize keeping their steed fed. However, Healers, Knights, and Monks may consider eating their starting apples if extra permafood proves especially scarce.
 +
 
 +
==History==
 +
The apple first appears in Hack 1.21 and Hack for PDP-11, which is based on [[Jay Fenlason's Hack]], and is included in the initial item list for [[Hack 1.0]].
 +
 
 +
==Origin==
 +
The effect of a cursed apple when eaten is a reference to the fairy tale of [[wikipedia:Snow White|Snow White]] and the poisoned apple.
 +
 
 +
The Unix-specific messages appear to be derived from [http://web.archive.org/web/20070210025718/http://www.rddavis.org/files/comp-humor/aoutman.humor joke Unix documentation] within a [[Usenet]] post that is not archived by Google Groups.
 +
 
 +
The presence of apples in a Healer's starting inventory may be a reference to the aphorism "an apple a day keeps the doctor away".
 +
 
 +
==Messages==
 
{{message|You hear sinister laughter as you fall asleep...|You ate a cursed apple and fell asleep.}}
 
{{message|You hear sinister laughter as you fall asleep...|You ate a cursed apple and fell asleep.}}
 
{{message|You fall asleep.|As above, while deaf.}}
 
{{message|You fall asleep.|As above, while deaf.}}
{{message|Heigh-ho, ho-hum, I think I'll skip work today.|As above, while a dwarf and hallucinating.}}
+
{{message|Heigh-ho, ho-hum, I think I'll skip work today.|As above, but you are a [[Dwarf (starting race)|dwarf]] and [[hallucinating]].}}
  
Some [[YAFM]]s appear if you eat an apple or [[pear]] in NetHack while playing on a [[Unix]] or [[Mac OS]] system:{{refsrc|src/eat.c|1423}}
+
Some [[YAFM]]s appear if you eat an apple or [[pear]] in NetHack while playing on a [[Unix]] or [[Mac OS|classic Mac OS]] system:{{refsrc|src/eat.c|1851|nethack=3.6.7}}{{refsrc|src/eat.c|1859|nethack=3.6.7}}
  
 
{| class="prettytable"
 
{| class="prettytable"
Line 37: Line 49:
 
! style="width: 50%;" | Effect
 
! style="width: 50%;" | Effect
 
|-
 
|-
| "Core dumped." ([[Unix]], not hallucinating)
+
| "Core dumped." ([[Unix]] (including modern macOS), not hallucinating)
 
| No effect
 
| No effect
 
----
 
----
 
When a Unix program performs an illegal operation, the kernel shuts down the program, and the program often dumps a core file for loading into debuggers; the [[pun]] is that apples are usually dumped once the core is the only thing left.
 
When a Unix program performs an illegal operation, the kernel shuts down the program, and the program often dumps a core file for loading into debuggers; the [[pun]] is that apples are usually dumped once the core is the only thing left.
 
|-
 
|-
| "Segmentation fault -- core dumped." (75/100 chance)<br/>
+
| "Segmentation fault -- core dumped." ({{frac|75|100}} chance)<br/>
"Bus error -- core dumped." (24/100 chance)<br/>
+
"Bus error -- core dumped." ({{frac|24|100}} chance)<br/>
"Yo' mama -- core dumped." (1/100 chance)<br/>
+
"Yo' mama -- core dumped." ({{frac|100}} chance)<br/>
(Unix, [[hallucination|hallucinating]])
+
(Unix, [[hallucinating]])
 
| No effect
 
| No effect
 
----
 
----
 
As above, but these error messages are more 'realistic' - an actual "core dumped" error on Unix comes with the cause of the crash.
 
As above, but these error messages are more 'realistic' - an actual "core dumped" error on Unix comes with the cause of the crash.
 
|-
 
|-
| "Delicious!  Must be a Macintosh!" ([[Mac OS]] before Mac OS X which is Unix-like)
+
| "Delicious!  Must be a Macintosh!" ([[Mac|Classic Mac OS]])
 
| No effect
 
| No effect
 
----
 
----
Line 56: Line 68:
 
|}
 
|}
  
==Origin==
+
==Variants==
The cursed apple's effect in post is a reference to [[wikipedia:Snow White|Snow White]] and the poisoned apple. The Unix-specific messages appear to be derived from [http://web.archive.org/web/20070210025718/http://www.rddavis.org/files/comp-humor/aoutman.humor joke Unix documentation] that originates in a [[Usenet]] post not archived by Google Groups. The presence of apples in a Healer's starting inventory may be a reference to the aphorism "an apple a day keeps the doctor away."
+
===dNetHack===
 +
In [[dNetHack]], non-[[Drow (starting race)|drow]] [[Binder]]s start with 2-4 apples. Drow and [[Half-dragon (starting race)|half-dragon]] Knights receive [[tripe ration]]s for their steed instead of apples.
 +
 
 +
[[Andromalius]] is a [[Spirits (dNetHack)|spirit]] whose binding ritual can use an apple as one of the two items placed in his seal, and using two non-apple items in the binding ritual may generate an apple as the third item the character receives if they successfully bind him.
 +
 
 +
===SpliceHack===
 +
In [[SpliceHack]], the defunct [[Dancer]] role starts with an apple among their food items.
 +
 
 +
An apple can be combined with a [[cream pie]] at a [[furnace]] to create an [[apple pie]].
 +
 
 +
===notdNetHack===
 +
In [[notdNetHack]] and [[notnotdNetHack]], in addition to dNetHack details, [[Spirits (dNetHack)#Eve, the First Sinner|Eve]] and [[Spirits (dNetHack)#Jack, of the Lantern|Jack]] are each generated with 1-2 apples when summoned by an [[Illithanachronounbinder]].
 +
 
 +
===EvilHack===
 +
In [[EvilHack]], [[Draugr (starting race)|draugr]] Knights do not have their starting apples replaced as with other draugr characters, since they are meant for the role's steed.
 +
 
 +
One of the [[crystal chest]]s on the last level of the [[Ice Queen's Realm]] contains a few apples, and they can also be found within [[chest]]s spread across the ground floor of [[Wizard's Tower (EvilHack)|the Wizard's Tower]].
 +
 
  
==Encyclopaedia entry==
+
==Encyclopedia entry==
 
{{encyclopedia|
 
{{encyclopedia|
 
NEWTONIAN, adj.  Pertaining to a philosophy of the universe invented by Newton, who discovered that an apple will fall to the ground, but was unable to say why.  His successors and disciples have advanced so far as to be able to say when.|[ The Devil's Dictionary, by Ambrose Bierce ]
 
NEWTONIAN, adj.  Pertaining to a philosophy of the universe invented by Newton, who discovered that an apple will fall to the ground, but was unable to say why.  His successors and disciples have advanced so far as to be able to say when.|[ The Devil's Dictionary, by Ambrose Bierce ]
 
}}
 
}}
  
== References ==
+
==References==
<references />
+
<references/>
 
+
{{nethack-367}}
{{nethack-364}}
 
 
[[Category:Comestibles]]
 
[[Category:Comestibles]]

Revision as of 08:34, 10 July 2024

% Apple.png
Name apple
Base price 7 zm
Nutrition 50
Turns to eat 1
Weight 2
Conduct vegan

An apple is a type of veggy comestible that appears in NetHack.

Generation

Healers and Monks start each game with 5-10 apples.[1][2] Knights start each game with 10-20 apples.[3] Tourists may start with apples among their random food items.[4]

Kicking a tree has a one-time 1415 chance of dropping (8−rnl(7)) fruits, which may be apples.[5] Cutting down a tree has a 15 chance of producing a piece of fruit that can be an apple.[6] If a tree is tunneled through, there is a 13 chance of fruit being left behind, which can be an apple.[7]

Applying a charged horn of plenty has a 1.4% chance of generating an apple or two.[8]

Description

When eaten, an apple provides 50 nutrition and takes 1 turn to consume - eating a cursed apple will also cause the hero to fall asleep for 20-30 turns if they lack sleep resistance, and food appraisal will warn a hero if they are about to eat one.[9][10]

Apples are vegan, and can be used to tame domestic herbivorous monsters and pacify domestic carnivores - herbivorous pets will consider apples to be treats.

Strategy

Apples are best saved for taming or feeding pets, and Knights in particular will want to prioritize keeping their steed fed. However, Healers, Knights, and Monks may consider eating their starting apples if extra permafood proves especially scarce.

History

The apple first appears in Hack 1.21 and Hack for PDP-11, which is based on Jay Fenlason's Hack, and is included in the initial item list for Hack 1.0.

Origin

The effect of a cursed apple when eaten is a reference to the fairy tale of Snow White and the poisoned apple.

The Unix-specific messages appear to be derived from joke Unix documentation within a Usenet post that is not archived by Google Groups.

The presence of apples in a Healer's starting inventory may be a reference to the aphorism "an apple a day keeps the doctor away".

Messages

You hear sinister laughter as you fall asleep...
You ate a cursed apple and fell asleep.
You fall asleep.
As above, while deaf.
Heigh-ho, ho-hum, I think I'll skip work today.
As above, but you are a dwarf and hallucinating.

Some YAFMs appear if you eat an apple or pear in NetHack while playing on a Unix or classic Mac OS system:[11][12]

Message Effect
"Core dumped." (Unix (including modern macOS), not hallucinating) No effect

When a Unix program performs an illegal operation, the kernel shuts down the program, and the program often dumps a core file for loading into debuggers; the pun is that apples are usually dumped once the core is the only thing left.

"Segmentation fault -- core dumped." (75100 chance)

"Bus error -- core dumped." (24100 chance)
"Yo' mama -- core dumped." (1100 chance)
(Unix, hallucinating)

No effect

As above, but these error messages are more 'realistic' - an actual "core dumped" error on Unix comes with the cause of the crash.

"Delicious! Must be a Macintosh!" (Classic Mac OS) No effect

Apple Computer named their Macintosh computers after a real type of apple.

Variants

dNetHack

In dNetHack, non-drow Binders start with 2-4 apples. Drow and half-dragon Knights receive tripe rations for their steed instead of apples.

Andromalius is a spirit whose binding ritual can use an apple as one of the two items placed in his seal, and using two non-apple items in the binding ritual may generate an apple as the third item the character receives if they successfully bind him.

SpliceHack

In SpliceHack, the defunct Dancer role starts with an apple among their food items.

An apple can be combined with a cream pie at a furnace to create an apple pie.

notdNetHack

In notdNetHack and notnotdNetHack, in addition to dNetHack details, Eve and Jack are each generated with 1-2 apples when summoned by an Illithanachronounbinder.

EvilHack

In EvilHack, draugr Knights do not have their starting apples replaced as with other draugr characters, since they are meant for the role's steed.

One of the crystal chests on the last level of the Ice Queen's Realm contains a few apples, and they can also be found within chests spread across the ground floor of the Wizard's Tower.


Encyclopedia entry

NEWTONIAN, adj. Pertaining to a philosophy of the universe invented by Newton, who discovered that an apple will fall to the ground, but was unable to say why. His successors and disciples have advanced so far as to be able to say when.

[ The Devil's Dictionary, by Ambrose Bierce ]

References