Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magic phase 6 - spell learning (through spellbooks) #30425

Merged
merged 1 commit into from
May 24, 2019

Conversation

KorGgenT
Copy link
Member

Summary

SUMMARY: Infrastructure "Adds the learn_spell iuse action"

Purpose of change

This is one of the four (planned) ways to gain spells, and by far the most common (at least in the mod i will be maintaining)
An iuse action called "learn_spell" will ble added to items, so you can learn or study the spell by spending time, much like reading. The time spent learning the spell and the rate at which you gain exp are highly dependent upon the various magic spells.

This is the 6th PR in the magic series of PRs - #30422 is the prerequisite to this one.

@KorGgenT KorGgenT added [JSON] Changes (can be) made in JSON Mods Issues related to mods or modding [C++] Changes (can be) made in C++. Previously named `Code` labels May 11, 2019
@KorGgenT KorGgenT force-pushed the magic-6-spell-learning branch from c77b733 to 41582ae Compare May 11, 2019 21:28
src/ranged.cpp Outdated
if( casting.aoe() > 0 ) {
nc_color color = c_light_gray;
if( casting.effect() == "projectile_attack" || casting.effect() == "target_attack" ) {
line_number += fold_and_print( w_target, line_number, 1, getmaxx( w_target ) - 2, color,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is massive.

@Ilysen
Copy link
Contributor

Ilysen commented May 12, 2019

I apologise for being horribly pedantic, but I dunno where to put this. What exactly will the magic mod be like for the average player?

@KorGgenT
Copy link
Member Author

well, if you would like to see a demo of my currently working magic mod, Here is a link to the (pre)release
To be brief, It will be a fantasy mod, much like you encounter in other roguelikes such as stone soup or angband.

@ZhilkinSerg ZhilkinSerg self-assigned this May 12, 2019
@Ilysen
Copy link
Contributor

Ilysen commented May 12, 2019

I'm on my craptop, but I'll try to remind myself to look at it. I like the work you're doing here.

@KorGgenT KorGgenT force-pushed the magic-6-spell-learning branch from bea9816 to fc064a1 Compare May 14, 2019 01:27
@ZhilkinSerg ZhilkinSerg removed their assignment May 15, 2019
@KorGgenT KorGgenT force-pushed the magic-6-spell-learning branch 8 times, most recently from 2763437 to 7eb2bf8 Compare May 21, 2019 11:24
@KorGgenT
Copy link
Member Author

jenkins rebuild

@KorGgenT KorGgenT force-pushed the magic-6-spell-learning branch from 7eb2bf8 to e5c3336 Compare May 23, 2019 20:17
@kevingranade kevingranade merged commit 4ad4cae into CleverRaven:master May 24, 2019
@KorGgenT KorGgenT deleted the magic-6-spell-learning branch May 24, 2019 10:24
@KorGgenT KorGgenT added the Mods: Magiclysm Anything to do with the Magiclysm mod label Jun 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON Mods: Magiclysm Anything to do with the Magiclysm mod Mods Issues related to mods or modding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants