File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ type Parcel @entity {
417417
418418 accessRights : [ParcelAccessRight ! ]! @derivedFrom (field : " parcel" )
419419
420- alchemicaToHarvest : [BigInt ! ]!
420+ remainingAlchemica : [BigInt ! ]!
421421 surveyRound : Int
422422}
423423
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export const getOrCreateParcel = (realmId: BigInt): Parcel => {
5050 parcel = new Parcel ( id ) ;
5151 parcel . equippedInstallations = new Array < string > ( ) ;
5252 parcel . equippedTiles = new Array < string > ( ) ;
53- parcel . alchemicaToHarvest = [ BIGINT_ZERO , BIGINT_ZERO , BIGINT_ZERO ] ;
53+ parcel . remainingAlchemica = [ BIGINT_ZERO , BIGINT_ZERO , BIGINT_ZERO ] ;
5454 parcel . surveyRound = 0 ;
5555 parcel = updateParcelInfo ( parcel ) ;
5656 }
Original file line number Diff line number Diff line change @@ -160,12 +160,12 @@ export function handleAlchemicaClaimed(event: AlchemicaClaimed): void {
160160 let parcel = getOrCreateParcel ( event . params . _realmId ) ;
161161 parcel . lastClaimedAlchemica = event . block . timestamp ;
162162
163- let alchemicas = parcel . alchemicaToHarvest ;
163+ let alchemicas = parcel . remainingAlchemica ;
164164 let entry = alchemicas [ event . params . _alchemicaType . toI32 ( ) ] ;
165165 alchemicas [ event . params . _alchemicaType . toI32 ( ) ] = entry . minus (
166166 event . params . _amount
167167 ) ;
168- parcel . alchemicaToHarvest = alchemicas ;
168+ parcel . remainingAlchemica = alchemicas ;
169169
170170 parcel . save ( ) ;
171171
@@ -553,12 +553,12 @@ export function handleParcelWhitelistSet(event: ParcelWhitelistSet): void {
553553export function handleSurveyParcel ( event : SurveyParcel ) : void {
554554 let entity = getOrCreateParcel ( event . params . _tokenId ) ;
555555
556- let alchemica = entity . alchemicaToHarvest ;
556+ let alchemica = entity . remainingAlchemica ;
557557 for ( let i = 0 ; i < event . params . _alchemicas . length ; i ++ ) {
558558 alchemica [ i ] = alchemica [ i ] . plus ( event . params . _alchemicas [ i ] ) ;
559559 }
560560
561561 entity . surveyRound = entity . surveyRound + 1 ;
562- entity . alchemicaToHarvest = alchemica ;
562+ entity . remainingAlchemica = alchemica ;
563563 entity . save ( ) ;
564564}
You can’t perform that action at this time.
0 commit comments