Skip to content

Incorrect media cost for Impulse spell #1170

@Alixollo

Description

@Alixollo

Modloader

Fabric

Minecraft version

1.20.1

Hex Casting version

0.11.3

Modloader version

Fabric : Loader 0.18.4 + API 0.92.8

Modpack info

https://modrinth.com/modpack/coloniessmp

The latest.log file

No response

Issue description

The information in the hex book on the media cost of the Impulse spell seems to be incorrect and/or misleading.
It says : "Costs units of Amethyst Dust equal to the square of the length of the vector, plus one for every Impulse except the first targeting an entity." This description would imply the following formula :

c = m² + ((n(n+1))/2)-1
Where
n = number of consecutive Impulses
m = magnitude of the vector
c = media cost
However, it seems that the ACTUAL formula is
c = m² + 1

I'm not sure if this is intended behavior or not, but here's a couple spreadsheets to illustrate the massive difference it represents :

This is how the media cost should theoretically look like, notice the red curve which represents the cutoff where an arrow becomes lethal against any protection, as well as the green cell which is the cost for optimal length/consecutive impulse amount.
Theoretical media cost

This is how the media cost CURRENTLY looks like, notice how it is ALWAYS more optimal to just do a high number of consecutive impulses with a length of 1.
Real media cost

Again, I'm not sure if this is intended or not but I think the theoretical version would be more interesting, and would also better reflect what is written in the hex book.

Cheers !

Steps to reproduce

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions