Skip to content

Instantly share code, notes, and snippets.

@hitarthdoc
Last active July 29, 2021 04:41
Show Gist options
  • Save hitarthdoc/7439cc993d7128b332f07bceed20aaec to your computer and use it in GitHub Desktop.
Save hitarthdoc/7439cc993d7128b332f07bceed20aaec to your computer and use it in GitHub Desktop.
Action Types for CC Achievements
public enum ActionType
{
Score = 1, // Reach Score
Earned = 2, // Earned Currency C1, C2, etc.
// Also Conditional Where, Level, Achievement, Idle Time(Like Cookies in SB).
// Earn X Gems
// TODO: hitarthdoc
// Problem // Earn X Gems by completing levels
// Problem // Earn X Coins from Achievements
Collect = 3, // Collect Currency C1, C2, etc, Cookies, Boosters, etc.
WorldProgress = 4, // Reach World or Restaturant
//
// If "Level" as PerformedOn parameter,
// then Completing the level number specified in Milestone,
// in the specified World and Restaurenat will trigger the achievement.
// Finish all levels in Bikini Bottom
// Finish 15th Level in Popcorn Pit
Tip = 5, // Tips received from Customer, and in which currency
// e.g. Get X tips of C1 in w2.
// if PerformedOn Parameter is empty then,
// e.g. Get X tips in w1r2
// OR Get x tips total.
Cooked = 6, // Cooked/Prepared Dish_id
Serve = 7, // Severed Customer type (Count). e.g. Serve Angry Cust 100 times in w2r1.
ServeDish = 8, // Servered Dish_id x times
WinLossStreak = 9, // Win or Loose Level (with type, e.g. Story Level, inifinite Level) Count.
// Condition in hours to complete achievement from start time/Date
// OPT: FEATURE: Repeating/Scheduleable Achievment
Purchase = 10, // On Purchase something from ingame store using IGC (C1, C2, etc.)
// Need itemId from store.
// e.g. Purchase Beach chair, or Purchase Booster_1 100 times.
PurchaseUpgrade = 10, // On Purchase Upgrade, upgrade_id/equipment_id and level.
// Buy Kitchen Upgrade (Upgrade_id) in the restaurant.
// Fully Upgrade Coke Dispencer in w3r2 restaurant.
// For Collection of upgrades, keep the progress feild empty.
// e.g. Upgrade all beverages in w1.
// OR Upgrade all main cuisines in w4.
Collection = 11, // OnPurchase will trigger CollectionChecks.
// Purchase a Collection of items from In Game Store.
// e.g. Purchase Halloween Collection from the sore.
// Collection data to be given seperately from Achievement and Segment Data.
CollectionAchievement = 30, // OPTIONAL.??!
// OnComplete Achievemnt will trigger CollectionAchChecks.
// Complete all achievements from W2.
// Complete all upgrading achievements.
// Collection data to be given seperately from Achievement and Segment Data.
Combo = 12, // Do X Combos of type or any type. Can also be bound by World and SubWorld.
TimeSpent = 13, // Time spent in Game, In Level (playing game), in Restarant(/World?).
// TODO: Decide approach.
// Opt-1: Polled Every Minute/Second.
// Opt-2: Calulated on every on state change.
Trashed = 14, // Trash Dish_id X times.
Invite = 15, // Invite from Social Platforms like Facebook, etc.
BurnDish = 16, // Burn Dish_id x times.
Booster = 17, // Use Booster_id x time.
SpeedUp = 18, // Time Sped-up in Delivery, Building(, Location Unlock ??)
// Speed Up Delevery of items in store by X minutes.
// Tracked on Speed time used.
CompleteEvent = 19, // Complete Event (Daily, Special, Lunch Rush, etc.) 1 or x times.
// Tracking initialize on Event data fetch Complete.
FTUE = 20, // Complete FTUE for the first time.
// COmplete x step in FTUE for w1 r3.
Spend = 21, // Spend IGC (C1, C2, etc.), Resource_id, Cookie, Booster Common of X value OR x times.
// Spend X C1.
// Use X Cookies.
// Use X boosters(any).
// Use X Hearts/some other thing.
WinWithBooster = 22, // Win x times while using Booster_id,
LossSameLevel = 23, // Loose the same level x times.
TrashSameLevel = 24, // Trash Dish on same level.
// Trash Dish_id x times in a level.
// Trash x dishes in a level.
BurnSameLevel = 25, // Burn Dish on same level.
// Burn Dish_id x times in a level.
// Burn x dishes in a level.
WinConditional = 26, // Conditional Win.
// Win the level without loosing any Customer.
// Win x levels without trashing any food.
// Win x levels without burning any food.
// Win x levels in w3r1 without loosing any Customers.
[HideInInspector]
[Obsolete]
Count = 27, // INVALID. DO NOT Even use it accidentally.
// Just a count of enums in this enum.
[Tooltip ("Used as an invalid Test.")]
[Obsolete]
Default = -1, // Invalid
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment