Feature - Implemented Log daycount when first got Shen Copperhead, Nightclub Owner

fredg1

Member
Shen Copperhead asks for 3 items (before you lose your temper and beat him up). Besides in Kingdom of Exploathing, these requests are based on what your daycount was when you got the adventure Shen Copperhead, Nightclub Owner.

Is it possible to get a property that stores what the value of my_daycount() was when you got that adventure?
 

fredg1

Member
Gave a go at making a patch for it myself (my first time doing so, did I do it right?)

in ChoiceManager.java:
in postChoice1, case 851: (Shen Copperhead, Nightclub Owner)

+ Preferences.setInteger( "shenInitiationDay", KoLCharacter.getCurrentDays() );


in ValhallaManager.java:
in resetPerAscensionCounters, right next to "copperheadClubHazard":

+ Preferences.setInteger( "shenInitiationDay", 0 );


in defaults.txt:

+ user shenInitiationDay 0

View attachment .patch
 
Top