-
Notifications
You must be signed in to change notification settings - Fork 80
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
base: master
Are you sure you want to change the base?
Conversation
{PwrK_None, GA_None, 0, 0, 0, 0}, | ||
}; | ||
^->According to this 'caspl->pwlevel' is either 0, 1, 2 or 8. | ||
} */ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
@@ -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; |
There was a problem hiding this comment.
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?
No description provided.