👑
GoldCastleClub
  • 🐈Gold Castle Club
  • Overview
    • ⚔️War
    • 👑Fealty
    • 💌Marriage
    • ☠️Anathema
    • 🐱NFT fields
Powered by GitBook
On this page
  • Vassals
  • Fealty offers
  • Increasing power
  1. Overview

Fealty

Vassals

Each NFT has a rarity (R.) value, ranging from 0 to 14. NFTs can only swear fealty to an NFT of higher rarity rank.

Vassals can be gained in a few ways. The easiest way is to go to the my collection page and swear fealty within your own collection, NFTs owned by the same wallet

Secondly you can create fealty offers. Here you can offer a bribe to any NFT of a particular rarity or to a specific NFT, in exchange for swearing fealty to you for a certain amount of days

Fealty offers

Open fealty offers can be made on the my collection page after selecting the NFT you want to get vassals for. Give an input for the bribe you're offering in $GOLD, the amount of days you want this subject to become your vassal, the minimum rarity the subject should have, and your campaign message.

Specific fealty offers can be made on the underlords page, the fealty page, the overlords pages, and the NFT pages. Give an input for the bribe in $GOLD, the amount of days, and your campaign message. Creating a fealty offer costs 1 ALPH, which will be refunded when the offer is accepted or if you revoke the offer.

Increasing power

Each individual NFT has various stats like attack, hp, magic and more. When NFTs swear fealty, these powers are combined into votingpower, total attack power, and total defensive power

Votingpower

The votingpower of an R.0 peasant is 1, the votingpower of an R.1 knight is 2, the votingpower of an R.2 lord is 3. But if these NFTs are sworn to each other, the total votingpower of the lord can be calculated like this: ( (1) * 1.1 + 2 ) * 1.2 + 3 = 6.72, rounded to 7. This is how votingpower is exponentially increased higher up the ladder

Attack and defensive power

The total attack and defensive power is calculated in a similar way, but also included other factors like the stars count, the magic of the NFTs wife or husband, the wisdom of the NFT, and the amount of lives

```python
                for subject in subjects:
                    if subject['wisdom'] > 0:
                        wisdom = int(subject['wisdom']) / 10
                    else:
                        wisdom = int(subject['wisdom']) / 2000
                    if subject['stars']:
                        subjectpotential = subject['maxpowerpotential'] * (1 + subject['stars'] / 5) + wisdom
                        subjectdefensivepower = subject['maxdefensivepower'] * (1 + subject['lives'] / 10) + wisdom
                        subjectvotingpower = subject['votingpower']
                    else:
                        subjectpotential = subject['maxpowerpotential'] * 1 + wisdom
                        subjectdefensivepower = subject['maxdefensivepower'] * (1 + subject['lives'] / 10) + wisdom
                        subjectvotingpower = subject['votingpower']
                    totalsubjectpotential += subjectpotential
                    totalsubjectdefensepower += subjectdefensivepower
                    totalsubjectvotingpower += subjectvotingpower
                    members += subject['members']
                    vassals += 1
                # If ismarried is TRUE, calculate maxpowerpotential based on potentialmarriage
                cursor.execute("SELECT potentialmarriage FROM nft_goldcastle_asia WHERE nftselfcontractaddress = %s", (row['nftselfcontractaddress'],))
                marriagepartner = cursor.fetchone()['potentialmarriage']


                if marriagepartner != row['nftselfcontractaddress']:
                    if row['nftindex'] == 87:
                         print(row['nftindex'])
                    magic = 0
                    cursor.execute("SELECT magic FROM nft_goldcastle_asia WHERE nftselfcontractaddress = %s ", (marriagepartner,))
                    partnermagic = cursor.fetchone()['magic']
                    magic += partnermagic
                    maxpowerpotential = row['ap'] * (1 + (magic / 10)) + totalsubjectpotential * (1 + row['rarity'] / 10)
                    maxdefensivepower = row['hp'] * (1 + (magic / 10)) + totalsubjectdefensepower * (1 + row['rarity'] / 10)
                else:
                    maxpowerpotential = row['ap'] + totalsubjectpotential * (1 + row['rarity'] / 10)
                    maxdefensivepower = row['hp'] + totalsubjectdefensepower * (1 + row['rarity'] / 10)  
```

PreviousWarNextMarriage

Last updated 1 year ago

👑
Page cover image