How can I use only the Torment?


Questions, Explanations, Howtos

Spider Stomper

Posts: 197

Joined: Sunday, 11th May 2014, 11:26

Post Sunday, 22nd December 2019, 08:24

How can I use only the Torment?

I'm reworking the Pain card. I removed the summon effect and added the torment effect. I would like to have only the use of the torment as a level 2 effect, but it uses both the torment and the bolt of draining.
https://github.com/crawl/crawl/pull/1232

  Code:
    case CARD_PAIN:
        if (power_level == 2)
        {
            torment(&you, TORMENT_CARD_PAIN, you.pos());
        }

        ztype = painzaps[min(power_level, (int)ARRAYSZ(painzaps)-1)];

What did I miss? Give me some advice.

Abyss Ambulator

Posts: 1187

Joined: Friday, 16th January 2015, 20:20

Post Sunday, 22nd December 2019, 17:40

Re: How can I use only the Torment?

You're going need to do more changes in that function. It is built for every effect to have a targeted component (e.g. bolt of draining, acid, OoD). You'll need to add logic to skip the targeted part if (card == CARD_PAIN) and (power_level == 2).

Return to Coding

Who is online

Users browsing this forum: No registered users and 1 guest

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