View Single Post
Old March 3, 2017, 12:41   #429
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,580
PowerWyrm is on a distinguished road
Quote:
Originally Posted by Nick View Post
The (charging) is a bug I thought I'd fixed.
IIRC when randomizing arts, activations are reset but not recharge time. See copy_artifact_data():

Code:
	/* Activations can come from the artifact or the kind */
	if (art->activation) {
		obj->activation = art->activation;
	} else if (kind->activation) {
		obj->activation = kind->activation;
	}

	if (art->time.base != 0) obj->time = art->time;
Should be:

Code:
	if (art->activation) {
		obj->activation = art->activation;
		obj->time = art->time;
	} else if (kind->activation) {
		obj->activation = kind->activation;
		obj->time = kind->time;
	}
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote