MCPcopy Index your code
hub / github.com/NetHack/NetHack / sacrifice_value

Function sacrifice_value

src/pray.c:1838–1850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1836}
1837
1838staticfn int
1839sacrifice_value(struct obj *otmp)
1840{
1841 int value = 0;
1842
1843 if (otmp->corpsenm == PM_ACID_BLOB
1844 || (svm.moves <= peek_at_iced_corpse_age(otmp) + 50)) {
1845 value = mons[otmp->corpsenm].difficulty + 1;
1846 if (otmp->oeaten)
1847 value = eaten_stat(value, otmp);
1848 }
1849 return value;
1850}
1851
1852/* the #offer command - sacrifice something to the gods */
1853int

Callers 1

eval_offeringFunction · 0.85

Calls 2

peek_at_iced_corpse_ageFunction · 0.85
eaten_statFunction · 0.85

Tested by

no test coverage detected