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

Use CrtrExpLevel typedef for most level-related stuff #3820

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

walt253
Copy link
Contributor

@walt253 walt253 commented Jan 11, 2025

No description provided.

{PwrK_None, GA_None, 0, 0, 0, 0},
};
^->According to this 'caspl->pwlevel' is either 0, 1, 2 or 8.
} */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will clean this up later but let me know what you think about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will clean this up later but let me know what you think about it.

image

Copy link
Member

Choose a reason for hiding this comment

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

Repeat num is how often they cast the same spell right? Or what is the feedback you want here?

@@ -618,20 +618,18 @@ TbBool create_task_slap_imps(struct Computer2 *comp, long creatrs_num);
TbBool create_task_dig_to_neutral(struct Computer2 *comp, const struct Coord3d startpos, const struct Coord3d endpos);
TbBool create_task_dig_to_gold(struct Computer2 *comp, const struct Coord3d startpos, const struct Coord3d endpos, long parent_cproc_idx, long count_slabs_to_dig, long gold_lookup_idx);
TbBool create_task_dig_to_entrance(struct Computer2 *comp, const struct Coord3d startpos, const struct Coord3d endpos, long parent_cproc_idx, long entroom_idx);
TbBool create_task_magic_speed_up(struct Computer2 *comp, const struct Thing *creatng, long splevel);
TbBool create_task_magic_flight_up(struct Computer2 *comp, const struct Thing *creatng, long splevel);
TbBool create_task_magic_vision_up(struct Computer2 *comp, const struct Thing *creatng, long splevel);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

create_task_magic_flight_up & create_task_magic_vision_up are not used anymore.

Copy link
Member

Choose a reason for hiding this comment

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

then yes, delete them.

if (exp >= CREATURE_MAX_LEVEL)
exp = 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe this was a mistake and should be exp = CREATURE_MAX_LEVEL but let me know if it's not.

Copy link
Member

Choose a reason for hiding this comment

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

I believe you to be correct.

@walt253 walt253 marked this pull request as ready for review January 11, 2025 05:48
@@ -116,7 +116,7 @@ Comp_Event_Func computer_event_func_list[] = {
NULL,
};

//PowerKind pwkind; char gaction; char require_owned_ground; int repeat_num; int pwlevel; int amount_able;
//PowerKind pwkind; char gaction; char require_owned_ground; int repeat_num; CrtrExpLevel pwlevel; int amount_able;
Copy link
Member

Choose a reason for hiding this comment

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

Is this right? Powers can accept a level less than creatures right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants