Welcome to the Builder Academy

Question Forge too OP how to balance?

More
30 Sep 2022 21:49 - 30 Sep 2022 22:03 #10175 by Nero
Replied by Nero on topic Forge too OP how to balance?
Hey Thomas,

For some reason the items do not save the stats when a player rents and then comes back in. Even though it may update the DAMROLL to 5 instead of 2 on an item, if they rent and come back in, the damage is back to 2.

Any ideas on why its not saving the item's upgrades to rent file?
Last edit: 30 Sep 2022 22:03 by Nero.

Please Log in or Create an account to join the conversation.

More
01 Oct 2022 21:45 #10180 by thomas
Replied by thomas on topic Forge too OP how to balance?
Hmm. These lines in objsave.c should make sure this was saved and loaded.
github.com/tbamud/tbamud/blob/master/src/objsave.c#L125
github.com/tbamud/tbamud/blob/master/src/objsave.c#L1084

What is in the save file for such a weapon?

Please Log in or Create an account to join the conversation.

More
01 Oct 2022 22:50 #10182 by Nero
Replied by Nero on topic Forge too OP how to balance?
Here is what mine looks like
 
Attachments:

Please Log in or Create an account to join the conversation.

More
02 Oct 2022 23:58 #10187 by Nero
Replied by Nero on topic Forge too OP how to balance?
Mine is an older codebase so it must be something I dont have in objsave.c after checking further it actually saves the item in the player obj save file but when loading back into the game it's for some reason reverting the stats back to the original object

Please Log in or Create an account to join the conversation.

More
05 Oct 2022 01:19 #10190 by Nero
Replied by Nero on topic Forge too OP how to balance?
I am getting closer to finally fixing this sort of. But is there a way to prevent the item from being forged if it already detects DAMROLL on the item?

Please Log in or Create an account to join the conversation.

More
06 Oct 2022 14:59 #10192 by thomas
Replied by thomas on topic Forge too OP how to balance?
yes, change this bit after the loop:
Code:
if (i == MAX_OBJECT_AFFECT || weapon->affected[i].location == APPLY_DAMROLL) { // all slots filled or already has damroll send_to_char(ch, "This weapon cannot be forged any more!\r\n"); return; }

Please Log in or Create an account to join the conversation.

Time to create page: 0.214 seconds