Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/credits - Refactor Resource logic to suit Currency implementation. #531

Closed
wants to merge 27 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d50b9ad
add bank and resource system
OwnerAli Aug 29, 2024
758d409
Create scoreboard for player.
oschwa Aug 30, 2024
d3eae0a
add scoreboard for resources
OwnerAli Aug 30, 2024
86848a2
Add listener for player getting resources.
oschwa Aug 30, 2024
a796462
- add scoreboard updates when a user acquires resources
OwnerAli Aug 30, 2024
5d5f21d
Delete src/main/resources/blueprints/island.blu
oschwa Aug 30, 2024
f79c456
Add new island.blu file.
oschwa Aug 30, 2024
174eef6
- add 45x45 plot blueprint for starter plot
OwnerAli Aug 31, 2024
aa45f0f
[WIP] Add new system to calculate accessible land for player
OwnerAli Aug 31, 2024
bb45586
block players from moving/placing/breaking outside their accessible land
OwnerAli Sep 1, 2024
8839f26
- add basic upgrade system with levelling type upgrades
OwnerAli Sep 2, 2024
d084c8f
- add description to upgrades to display on gui items
OwnerAli Sep 2, 2024
a86ea03
- recode entire levelled upgrade system
OwnerAli Sep 3, 2024
382d587
- update method and class names for PlayerMoveListener.java
OwnerAli Sep 3, 2024
f2be66f
Create level 3 upgrade for player land space.
oschwa Sep 4, 2024
d94469a
- begin implementing generators
OwnerAli Sep 4, 2024
bcfb4e0
Create dynamically-coded solution for upgrade sound and chat message …
oschwa Sep 6, 2024
dc62bb1
- add basic code structure for creating manual generators
OwnerAli Sep 7, 2024
9355290
Merge remote-tracking branch 'origin/feature/upgrades' into feature/u…
OwnerAli Sep 7, 2024
eacef57
Implement fundamental Generator upgrade abstraction for future resour…
oschwa Sep 12, 2024
21b210c
Incorporate GeneratorUpgrade object usage in UpgradeManager
oschwa Sep 12, 2024
625f16f
Revert GeneratorUpgrade usage in UpgradeManager for future upgrade re…
oschwa Sep 12, 2024
0a77a25
Create a system in which credits are managed per-player via a CreditB…
oschwa Sep 13, 2024
f100171
Create fundamental system for currencies in minigame, staged upon exi…
oschwa Sep 18, 2024
a67f002
Create fundamental system for currencies in minigame, staged upon exi…
oschwa Sep 18, 2024
babfc8e
Rename CreditBank to CurrencyBank.
oschwa Sep 18, 2024
6e21122
Rename CreditBank to CurrencyBank.
oschwa Sep 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create fundamental system for currencies in minigame, staged upon exi…
…sting Resource functionality.
oschwa committed Sep 18, 2024
commit a67f0020a967b9d2a16804b88a01b6d65a853b89
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package dev.viaduct.factories.domain.players;

import dev.viaduct.factories.FactoriesPlugin;
import dev.viaduct.factories.domain.banks.Bank;
import dev.viaduct.factories.domain.banks.impl.CreditBank;
import dev.viaduct.factories.domain.banks.impl.ResourceBank;
import dev.viaduct.factories.generators.Generator;
import dev.viaduct.factories.generators.GeneratorHolder;
import dev.viaduct.factories.guis.scoreboards.FactoryScoreboard;
import dev.viaduct.factories.registries.impl.FactoryPlayerRegistry;
import dev.viaduct.factories.registries.impl.GeneratorRegistry;
import dev.viaduct.factories.resources.currency.impl.Credit;
import dev.viaduct.factories.settings.SettingHolder;
import dev.viaduct.factories.upgrades.LevelledUpgradeHolder;
import lombok.Getter;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package dev.viaduct.factories.guis.scoreboards;

import dev.viaduct.factories.domain.banks.Bank;
import dev.viaduct.factories.domain.banks.impl.ResourceBank;
import dev.viaduct.factories.domain.players.FactoryPlayer;
import dev.viaduct.factories.resources.Resource;
Original file line number Diff line number Diff line change
@@ -7,11 +7,6 @@ public abstract class Currency extends Resource {
protected Currency(String name, Material... materials) {
super(name, 1.0, materials);
}

protected Currency(String name) {
super(name, 1.0);
}

@Override
public abstract String getFormattedName();
}