Skip to content

Commit 59aea03

Browse files
authored
[Crafting] SynthUtils work. Added era dependant margins and rates. (#506)
* Past forgotten work * Derp * Add configs * Disclaimers * Adjustments to skill up rates. * Fix derp * Fix build/confict * You get a brace, you get a brace, everyone gets a brace. * You get a brace aswell
1 parent fa9f409 commit 59aea03

File tree

4 files changed

+228
-254
lines changed

4 files changed

+228
-254
lines changed

conf/default/map.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ garden_moonphase_matters: 0
130130
garden_pot_matters: 0
131131
garden_mh_aura_matters: 0
132132

133+
#Use current retail skill up rates and margins (Retail: High Skill-Up rate; Skill-Up when at or under 10 levels above synth recipe level.)
134+
craft_modern_system: 1
135+
133136
#Craft level limit from witch specialization points beging to count. (Retail: 700; Level 75 era:600)
134137
craft_common_cap: 700
135138

src/map/map.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,7 @@ int32 map_config_default()
10411041
map_config.garden_moonphase_matters = false;
10421042
map_config.garden_pot_matters = false;
10431043
map_config.garden_mh_aura_matters = false;
1044+
map_config.craft_modern_system = 1;
10441045
map_config.craft_common_cap = 700;
10451046
map_config.craft_specialization_points = 400;
10461047
map_config.mob_tp_multiplier = 1.0f;
@@ -1380,6 +1381,10 @@ int32 map_config_read(const int8* cfgName)
13801381
{
13811382
map_config.craft_amount_multiplier = (float)atof(w2);
13821383
}
1384+
else if (strcmp(w1, "craft_modern_system") == 0)
1385+
{
1386+
map_config.craft_modern_system = atof(w2);
1387+
}
13831388
else if (strcmp(w1, "craft_common_cap") == 0)
13841389
{
13851390
map_config.craft_common_cap = atoi(w2);

src/map/map.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ struct map_config_t
101101
bool garden_moonphase_matters; // Enable/disable Moon phase factor in gardening results
102102
bool garden_pot_matters; // Enable/disable Pot element factor in gardening results
103103
bool garden_mh_aura_matters; // Enable/disable Mog house aura factor in gardening results
104+
bool craft_modern_system; // Enable/disable current retail margins and rates.
104105
uint16 craft_common_cap; // Used in crafting, in synthutils.cpp. Defines skill limit before specialization system
105106
uint16 craft_specialization_points; // Used in crafting, in synthutils.cpp. Defines the maximum points of the specialization system.
106107
float mob_tp_multiplier; // Multiplies the amount of TP mobs gain on any effect that would grant TP

0 commit comments

Comments
 (0)