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

[changed] Added coin cost to Trampoline in Buildershop (30 coins) #2167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion Entities/Common/Includes/Costs.as
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace CTFCosts

//BuilderShop.as
s32 lantern_wood, bucket_wood, filled_bucket, sponge, boulder_stone,
trampoline_wood, saw_wood, saw_stone, drill_stone, drill,
trampoline_wood, trampoline, saw_wood, saw_stone, drill_stone, drill,
crate_wood, crate;

//BoatShop.as
Expand Down Expand Up @@ -137,6 +137,7 @@ void InitCosts()
CTFCosts::sponge = ReadCost(cfg, costs, "cost_sponge" , 15);
CTFCosts::boulder_stone = ReadCost(cfg, costs, "cost_boulder_stone" , 35);
CTFCosts::trampoline_wood = ReadCost(cfg, costs, "cost_trampoline_wood" , 150);
CTFCosts::trampoline = ReadCost(cfg, costs, "cost_trampoline" , 30);
CTFCosts::saw_wood = ReadCost(cfg, costs, "cost_saw_wood" , 150);
CTFCosts::saw_stone = ReadCost(cfg, costs, "cost_saw_stone" , 100);
CTFCosts::drill_stone = ReadCost(cfg, costs, "cost_drill_stone" , 100);
Expand Down
1 change: 1 addition & 0 deletions Entities/Industry/CTFShops/BuilderShop/BuilderShop.as
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ void onInit(CBlob@ this)
{
ShopItem@ s = addShopItem(this, "Trampoline", getTeamIcon("trampoline", "Trampoline.png", team_num, Vec2f(32, 16), 3), "trampoline", Descriptions::trampoline, false);
AddRequirement(s.requirements, "blob", "mat_wood", "Wood", CTFCosts::trampoline_wood);
AddRequirement(s.requirements, "coin", "", "Coins", CTFCosts::trampoline);
}
{
ShopItem@ s = addShopItem(this, "Saw", getTeamIcon("saw", "VehicleIcons.png", team_num, Vec2f(32, 32), 3), "saw", Descriptions::saw, false);
Expand Down
1 change: 1 addition & 0 deletions Entities/Industry/CTFShops/CTFCosts.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
cost_sponge = 15
cost_boulder_stone = 35
cost_trampoline_wood = 150
cost_trampoline = 30
cost_saw_wood = 150
cost_saw_stone = 100
cost_drill_stone = 100
Expand Down