comparison rogue3/rogue.h @ 251:e7862a021609

Fix the perpetual haste cheat. Rogue V3 allowed the player to gain perpetual haste by quaffing a potion of haste while already hasted. This is supposed to remove the haste effect and cause temporary paralysis. Super-Rogue removed haste correctly, but gave confusing messages.
author John "Elwin" Edwards
date Sat, 28 Jan 2017 11:45:36 -0500
parents ee250e3646fd
children 17005af49963
comparison
equal deleted inserted replaced
250:d08f19d529eb 251:e7862a021609
509 void _attach(struct linked_list **list, struct linked_list *item); 509 void _attach(struct linked_list **list, struct linked_list *item);
510 void _detach(struct linked_list **list, struct linked_list *item); 510 void _detach(struct linked_list **list, struct linked_list *item);
511 void _free_list(struct linked_list **ptr); 511 void _free_list(struct linked_list **ptr);
512 char * _new(size_t size); 512 char * _new(size_t size);
513 int add_dam(str_t *str); 513 int add_dam(str_t *str);
514 void add_haste(int potion); 514 bool add_haste(int potion);
515 void add_pack(struct linked_list *item, int silent); 515 void add_pack(struct linked_list *item, int silent);
516 void add_pass(void); 516 void add_pass(void);
517 void addmsg(char *fmt, ...); 517 void addmsg(char *fmt, ...);
518 void aggravate(void); 518 void aggravate(void);
519 int attack(struct thing *mp); 519 int attack(struct thing *mp);