Spell hunger scale


Although the central place for design discussion is ##crawl-dev on freenode, some may find it helpful to discuss requests and suggestions here first.

Ziggurat Zagger

Posts: 8786

Joined: Sunday, 5th May 2013, 08:25

Post Saturday, 11th October 2014, 23:46

Spell hunger scale

learndb wrote:Casting a spell lowers your nutrition by an amount varying with the spell's level: (1) 50, (2) 95, (3) 160, (4) 250, (5) 350, (6) 550, (7) 700, (8) 860, (9) 1000.

Here's a graph of current spell hunger:
Image
Here's one of the change in spell hunger from the previous level:
Image

The difference between level 5 and 6 spells is huge for no reason (this is noticeable in gameplay if you look at your spell hunger at all), it changes direction a bunch of times, and generally has no discernible pattern. I admit it's rare for spell hunger to have a meaningful effect, but I still think it should use a smoother scale. For example, the best quadratic fit results in (1) 35, (2) 92, (3) 172, (4) 269, (5) 384, (6) 518, (7) 670, (8) 842, (9) 1031.

For this message the author duvessa has received thanks: 6
all before, Brannock, johlstei, Lasty, Psiweapon, Sprucery
User avatar

Blades Runner

Posts: 561

Joined: Friday, 18th January 2013, 01:08

Location: Medical Mechanica

Post Saturday, 11th October 2014, 23:55

Re: Spell hunger scale

beautiful
Hirsch I wrote:Also,are you calling me a power-gamer? this is highly offensive! now excuse me, I have to go back to my GrBe game, that I savescummed until trog gave me a Vampiric +9 claymore.

Dungeon Master

Posts: 1051

Joined: Thursday, 12th June 2014, 05:19

Post Sunday, 12th October 2014, 00:34

Re: Spell hunger scale

duvessa wrote:
learndb wrote:Casting a spell lowers your nutrition by an amount varying with the spell's level: (1) 50, (2) 95, (3) 160, (4) 250, (5) 350, (6) 550, (7) 700, (8) 860, (9) 1000.

Here's a graph of current spell hunger:
Image
Here's one of the change in spell hunger from the previous level:
Image

The difference between level 5 and 6 spells is huge for no reason (this is noticeable in gameplay if you look at your spell hunger at all), it changes direction a bunch of times, and generally has no discernible pattern. I admit it's rare for spell hunger to have a meaningful effect, but I still think it should use a smoother scale. For example, the best quadratic fit results in (1) 35, (2) 92, (3) 172, (4) 269, (5) 384, (6) 518, (7) 670, (8) 842, (9) 1031.

What are the coefficients on your fit? I'd rather have a formula than a lookup table, I think.

For this message the author PleasingFungus has received thanks:
Brannock

Tomb Titivator

Posts: 853

Joined: Thursday, 29th August 2013, 18:39

Post Sunday, 12th October 2014, 00:49

Re: Spell hunger scale

y = 9x^2 + 31x - 6

Teaching yourself simple linear regression is worthwhile if you're feeling it. I always wondered why haste seemed to be so much more hungering than level 5 spells, now I know.

Snake Sneak

Posts: 101

Joined: Tuesday, 23rd September 2014, 23:03

Post Sunday, 12th October 2014, 05:27

Re: Spell hunger scale

duvessa wrote:
learndb wrote:The difference between level 5 and 6 spells is huge for no reason.

One justification for the large increase would be that some of the best conjuration spells (which have to be cast multiple times and hence may have hunger issues) are level 6, and greatly increase your character's destructive power. While having a quadratic (or linear) increase in spell hunger is ascetically appealing and is arguably easier for a player to follow, sometimes a discontinuity makes sense. Of course if the game ever does away with hunger in all forms (will it?) then the point will be moot.
User avatar

Tartarus Sorceror

Posts: 1891

Joined: Monday, 1st April 2013, 04:41

Location: Toronto, Canada

Post Sunday, 12th October 2014, 06:52

Re: Spell hunger scale

johlstei wrote:y = 9x^2 + 31x - 6


I demand we use a quadratic with integer, or at least rational, roots; I will not compromise.
take it easy

Ziggurat Zagger

Posts: 8786

Joined: Sunday, 5th May 2013, 08:25

Post Tuesday, 14th October 2014, 01:34

Re: Spell hunger scale

elliptic proposed fudging the numbers to ease memorization, something like: 50, 100, 150, 250, 400, 550, 700, 850, 1000
User avatar

Barkeep

Posts: 4435

Joined: Tuesday, 11th January 2011, 12:28

Post Tuesday, 14th October 2014, 02:01

Re: Spell hunger scale

If there were ever numbers in crawl I needed to memorize, these are the ones.
I am not a very good player. My mouth is a foul pit of LIES. KNOW THIS.

Barkeep

Posts: 3890

Joined: Wednesday, 14th August 2013, 23:25

Location: USA

Post Tuesday, 14th October 2014, 02:18

Re: Spell hunger scale

I don't know for sure one way or the other, but elliptic may have been more concerned about ease of remembering/re-typing these numbers for people working on the code, rather than players looking it up on learndb. It isn't a huge deal either way, but since it isn't a huge deal, why not go with nice, round numbers?
User avatar

Barkeep

Posts: 4435

Joined: Tuesday, 11th January 2011, 12:28

Post Tuesday, 14th October 2014, 13:19

Re: Spell hunger scale

I know, it just sounded funny to me. I like pretty numbers too.
I am not a very good player. My mouth is a foul pit of LIES. KNOW THIS.

Dungeon Master

Posts: 1051

Joined: Thursday, 12th June 2014, 05:19

Post Tuesday, 14th October 2014, 15:52

Re: Spell hunger scale

and into wrote:I don't know for sure one way or the other, but elliptic may have been more concerned about ease of remembering/re-typing these numbers for people working on the code, rather than players looking it up on learndb. It isn't a huge deal either way, but since it isn't a huge deal, why not go with nice, round numbers?

I have nothing against arbitrary, round hunger numbers, but if anyone is retyping these numbers in the code, something has gone terribly wrong.

(and this is rapidly approaching the point of "hunger number bikeshedding", assuming it didn't start there.)
User avatar

Tartarus Sorceror

Posts: 1891

Joined: Monday, 1st April 2013, 04:41

Location: Toronto, Canada

Post Tuesday, 14th October 2014, 19:53

Re: Spell hunger scale

PleasingFungus wrote:
and into wrote:I don't know for sure one way or the other, but elliptic may have been more concerned about ease of remembering/re-typing these numbers for people working on the code, rather than players looking it up on learndb. It isn't a huge deal either way, but since it isn't a huge deal, why not go with nice, round numbers?

I have nothing against arbitrary, round hunger numbers, but if anyone is retyping these numbers in the code, something has gone terribly wrong.


So status quo for crawl then?
take it easy

Tomb Titivator

Posts: 799

Joined: Saturday, 23rd February 2013, 22:25

Post Tuesday, 14th October 2014, 20:06

Re: Spell hunger scale


I think I just died a little inside.

Dungeon Master

Posts: 1051

Joined: Thursday, 12th June 2014, 05:19

Post Wednesday, 15th October 2014, 15:29

Re: Spell hunger scale


In complete fairness, that quote is from a 15-year-old commit.

Crawl's code is still bad, but it's not quite that bad anymore.

Mostly.

For this message the author PleasingFungus has received thanks:
Arrhythmia

Dungeon Master

Posts: 1051

Joined: Thursday, 12th June 2014, 05:19

Post Wednesday, 15th October 2014, 15:38

Re: Spell hunger scale

duvessa wrote:elliptic proposed fudging the numbers to ease memorization, something like: 50, 100, 150, 250, 400, 550, 700, 850, 1000

Pushed these.

Did some searching through the git in the process; turns out that the old hunger numbers date back to pre-Stone-Soup.

Also turns out that crawl did (and does) support hunger calculations for spells that are level 10 or higher. Makes me wonder if that is/was ever used.

For this message the author PleasingFungus has received thanks: 2
Brannock, duvessa

Tartarus Sorceror

Posts: 1888

Joined: Saturday, 9th July 2011, 20:57

Post Thursday, 16th October 2014, 04:05

Re: Spell hunger scale

PleasingFungus wrote:Also turns out that crawl did (and does) support hunger calculations for spells that are level 10 or higher. Makes me wonder if that is/was ever used.


Obviously, we need to test this out with a level 10 spell.

For this message the author nicolae has received thanks: 2
Arrhythmia, Sar

Return to Game Design Discussion

Who is online

Users browsing this forum: No registered users and 83 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.