This repository has been archived by the owner on May 6, 2024. It is now read-only.
forked from jakubg1/OpenSMCE
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
So far, the only functional food item effects are: - `curveClearsGiveOneSecond` - `targetsGiveOneSecond` - `multiplierCapAdditiveModifier` - `shotSpeedModifier` (? - check Shooter.lua diff) Thus, the list of functional Food items are: - Cherry Time Tart - Curvy Fries - 10 Pound Turkey - Potent Drinks (partial: 33% shot speed effect) Again, you must edit runtime.lua in order to equip a food item. Most of them do nothing as they are not coded in.
- Loading branch information
1 parent
8d0c208
commit 91bef2e
Showing
8 changed files
with
168 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
local class = require "com/class" | ||
|
||
---@class FoodItem | ||
---@overload fun(data, path):FoodItem | ||
local FoodItem = class:derive("FoodItem") | ||
|
||
-- Place your imports here | ||
|
||
|
||
|
||
function FoodItem:new(data, path) | ||
self._path = path | ||
self._name = nil -- Only used for self-reference; assigned in ConfigManager.lua | ||
self.displayName = data.displayName | ||
self.sprite = data.sprite | ||
self.price = data.price or 10000 | ||
self.variants = data.variants | ||
self.variantBase = nil | ||
self.effects = data.effects | ||
end | ||
|
||
|
||
|
||
return FoodItem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters