Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

In this guide, I will demonstrate how to modify weapon behavior so that damage dealt remains constant. With this change, you will no longer experience variations in damage; instead, you will consistently apply the fixed damage specified for swords in the item_proto at the "Value(3)" column.

Step-by-Step Instructions

Modifications in battle.cpp

To implement the desired change, follow these simple steps:

  1. Open the battle.cpp File:
    Locate the battle.cpp file in your project directory where the battle mechanics are defined.

  2. Find the Damage Value Assignment:
    Look for the line that assigns the maximum damage value, which will appear similar to this:

     
  • This is the hidden content, please

     

  • Make the Necessary Change:
    Replace the existing line with the following to ensure that the maximum damage is retrieved from the appropriate column:

     
  1. This is the hidden content, please

     

Result of the Modification

After making this adjustment, all weapons will deal a consistent amount of damage based on the value specified in the item_proto. This means players will no longer experience unpredictable damage outcomes during combat.

With these changes, the gameplay will become more predictable, allowing for a more controlled combat experience. This consistency in damage can be beneficial for balancing purposes within your game.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...