-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8a59bb
commit 0b27648
Showing
84 changed files
with
504 additions
and
269 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
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 |
---|---|---|
@@ -1,23 +1,64 @@ | ||
[ | ||
[ | ||
{"op":"test","path":"/undergroundPlaceables/items"}, | ||
{"op":"add","path":"/undergroundPlaceables/items/-","value":{"mode":"floor","priority":0,"variants":1,"distribution":"/biomes/distributions.config:undergroundweaponChests","type":"treasureBox","treasureBoxSets":["sb_gunChest"]}} | ||
[{ | ||
"op": "test", | ||
"path": "/undergroundPlaceables/items" | ||
}, { | ||
"op": "add", | ||
"path": "/undergroundPlaceables/items/-", | ||
"value": { | ||
"mode": "floor", | ||
"priority": 0, | ||
"variants": 1, | ||
"distribution": "/biomes/distributions.config:undergroundweaponChests", | ||
"type": "treasureBox", | ||
"treasureBoxSets": ["sb_gunChest"] | ||
} | ||
} | ||
], | ||
|
||
[ | ||
{"op":"add","path":"/musicTrack/night/tracks/-","value":"/music/sb_forest-exploration1.ogg"}, | ||
{"op":"add","path":"/musicTrack/night/tracks/-","value":"/music/sb_forest-exploration2.ogg"}, | ||
{"op":"add","path":"/musicTrack/day/tracks/-","value":"/music/forest-loop.ogg"} | ||
[{ | ||
"op": "add", | ||
"path": "/musicTrack/night/tracks/-", | ||
"value": "/music/sb_forest-exploration1.ogg" | ||
}, { | ||
"op": "add", | ||
"path": "/musicTrack/night/tracks/-", | ||
"value": "/music/sb_forest-exploration2.ogg" | ||
}, { | ||
"op": "add", | ||
"path": "/musicTrack/day/tracks/-", | ||
"value": "/music/forest-loop.ogg" | ||
} | ||
], | ||
|
||
[ | ||
{"op":"add","path":"/surfacePlaceables/items/-","value":{ | ||
"mode":"floor", | ||
"priority":1, | ||
"variants":1, | ||
"distribution":"/biomes/distributions.config:mainBiomeEncounterDungeon", | ||
"type":"microdungeon", | ||
"microdungeons":["sb_glitchencounter","sb_randomencounter","sb_miniboss"]} | ||
} | ||
[{ | ||
"op": "add", | ||
"path": "/surfacePlaceables/items/-", | ||
"value": { | ||
"mode": "floor", | ||
"priority": 1, | ||
"variants": 1, | ||
"distribution": "/biomes/distributions.config:mainBiomeEncounterDungeon", | ||
"type": "microdungeon", | ||
"microdungeons": ["sb_glitchencounter", "sb_randomencounter", "sb_miniboss"] | ||
} | ||
} | ||
], | ||
|
||
[{ | ||
"op": "add", | ||
"path": "/surfacePlaceables/items/-", | ||
"value": { | ||
"mode": "floor", | ||
"priority": 1, | ||
"variants": 1, | ||
"distribution": "/biomes/distributions.config:denseLarge", | ||
"type": "tree", | ||
"treeFoliageHueShiftMax" : 180, | ||
"treeStemHueShiftMax" : 15, | ||
"treeStemList": ["wood"], | ||
"treeFoliageList": ["greenleaves"] | ||
} | ||
} | ||
] | ||
] | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,19 @@ | ||
{ | ||
"id": "sb_gunguide", | ||
"title": "All About Ammo", | ||
"description": "An informational leaflet about ammunition for guns.", | ||
"icon": "sb_gun.png", | ||
"contentPages": [ | ||
"While most guns solely use energy reserves, certain firearms can still use traditional ammunition. They will plainly state 'This weapon can use ammo'. | ||
* 20% damage boost when using any ammo | ||
* Uses energy when ammo is depleted or when ^#71f2f6;SHIFT^reset; is held | ||
* Ammo is automatically used when in the inventory | ||
* Craft ammo at an anvil | ||
* All types of ammo are universally accepted" | ||
], | ||
"itemConfig": { | ||
"rarity": "common", | ||
"tooltipKind": "sb_object", | ||
"price": 25 | ||
} | ||
} |
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,23 @@ | ||
[ | ||
[{ | ||
"op": "test", | ||
"path": "/definition/start/sounds/0" | ||
}, { | ||
"op": "add", | ||
"path": "/definition/start/sounds/-", | ||
"value": "/sfx/humanoid/eat1.ogg" | ||
}, { | ||
"op": "add", | ||
"path": "/definition/start/sounds/-", | ||
"value": [ | ||
"/sfx/humanoid/eat2.ogg" | ||
] | ||
}, { | ||
"op": "add", | ||
"path": "/definition/start/sounds/-", | ||
"value": [ | ||
"/sfx/humanoid/eat4.ogg" | ||
] | ||
} | ||
] | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{ | ||
"itemName" : "sb_electricfluffalofeed", | ||
"rarity" : "uncommon", | ||
"category" : "farmBeastFeed", | ||
"price" : 250, | ||
"inventoryIcon" : "electric.png", | ||
"description" : "Feed this to a fluffalo calf to raise an Electric Fluffalo - a good source of static cells.", | ||
"tooltipKind" : "sb_object", | ||
"shortdescription" : "Electric Eggplant", | ||
"feedType" : "electric", | ||
"radioMessagesOnPickup" : ["sb_pickupfarmbeastfeed"], | ||
"scripts" : ["feed.lua"] | ||
} | ||
"itemName": "sb_electricfluffalofeed", | ||
"rarity": "uncommon", | ||
"category": "farmBeastFeed", | ||
"price": 250, | ||
"inventoryIcon": "electric.png", | ||
"description": "Feed this to an electric fluffalo calf to accelerate its growth, or to any other calf to change its element.", | ||
"tooltipKind": "sb_object4", | ||
"shortdescription": "Electric Eggplant", | ||
"feedType": "electric", | ||
"radioMessagesOnPickup": ["sb_pickupfarmbeastfeed"], | ||
"animation": "feed.animation", | ||
"scripts": ["feed.lua"] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
{ | ||
"itemName" : "sb_fluffalofeed", | ||
"rarity" : "uncommon", | ||
"category" : "farmBeastFeed", | ||
"price" : 250, | ||
"inventoryIcon" : "feed.png", | ||
"description" : "Feed this to a fluffalo calf to raise a common Fluffalo - a good source of plant fibre.", //"Feed this to a fluffalo calf to help it mature.", | ||
"tooltipKind" : "sb_object", | ||
"shortdescription" : "Ordinary Acorn", | ||
"radioMessagesOnPickup" : ["sb_pickupfarmbeastfeed"], | ||
"scripts" : ["feed.lua"] | ||
} | ||
"itemName": "sb_fluffalofeed", | ||
"rarity": "uncommon", | ||
"category": "farmBeastFeed", | ||
"price": 250, | ||
"inventoryIcon": "feed.png", | ||
"description": "Feed this to an unattuned fluffalo calf to accelerate its growth, or to any other calf to remove its element.", | ||
"tooltipKind": "sb_object4", | ||
"shortdescription": "Ordinary Acorn", | ||
"radioMessagesOnPickup": ["sb_pickupfarmbeastfeed"], | ||
"animation": "feed.animation", | ||
"scripts": ["feed.lua"] | ||
} |
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 @@ | ||
{"sounds":{"eat":["/sfx/humanoid/eat1.ogg","/sfx/humanoid/eat2.ogg","/sfx/humanoid/eat3.ogg","/sfx/humanoid/eat4.ogg"]}} |
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 |
---|---|---|
@@ -1,23 +1,32 @@ | ||
function init() | ||
feed = config.getParameter("feedType","") | ||
require "/scripts/activeitem/sb_swing.lua" | ||
local updat = update | ||
function init() swingInit() | ||
feed = config.getParameter("feedType", "") | ||
range = config.getParameter("interactRadius", root.assetJson("/player.config:interactRadius")) | ||
promised = false | ||
end | ||
|
||
function activate() | ||
function swingAction() | ||
local target = world.monsterQuery(activeItem.ownerAimPosition(), 0)[1] | ||
if checkTargetRadius(target) then | ||
i = world.sendEntityMessage(target,"sb_feedFluffalo",feed) | ||
if checkTargetRadius(target) and not promised then | ||
i = world.sendEntityMessage(target, "sb_feedFluffalo", feed) | ||
promised = true | ||
end | ||
end | ||
|
||
function update() if promised then if i:finished() and i:result() == true then item.consume(1) promised = false end end end | ||
function update(dt, fireMode, shiftHeld) updat(dt, fireMode, shiftHeld) | ||
if promised then | ||
if i:finished() and i:result() == true then | ||
item.consume(1) | ||
animator.playSound("eat") | ||
promised = nil | ||
end | ||
end | ||
end | ||
|
||
function checkTargetRadius(target) | ||
if target and world.entityExists(target) then | ||
local pos = mcontroller.position() | ||
local targetPosition = world.entityPosition(target) | ||
return (world.magnitude(pos, targetPosition) <= range and not world.lineCollision(pos, targetPosition)) | ||
return player.isAdmin() or (world.magnitude(pos, targetPosition) <= range and not world.lineCollision(pos, targetPosition)) | ||
end | ||
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{ | ||
"itemName" : "sb_firefluffalofeed", | ||
"rarity" : "uncommon", | ||
"category" : "farmBeastFeed", | ||
"price" : 250, | ||
"inventoryIcon" : "fire.png", | ||
"description" : "Feed this to a fluffalo calf to raise a Fire Fluffalo - a good source of scorched cores.", | ||
"tooltipKind" : "sb_object", | ||
"shortdescription" : "Blazing Berry", | ||
"feedType" : "fire", | ||
"radioMessagesOnPickup" : ["sb_pickupfarmbeastfeed"], | ||
"scripts" : ["feed.lua"] | ||
} | ||
"itemName": "sb_firefluffalofeed", | ||
"rarity": "uncommon", | ||
"category": "farmBeastFeed", | ||
"price": 250, | ||
"inventoryIcon": "fire.png", | ||
"description": "Feed this to a fire fluffalo calf to accelerate its growth, or to any other calf to change its element.", | ||
"tooltipKind": "sb_object4", | ||
"shortdescription": "Blazing Berry", | ||
"feedType": "fire", | ||
"radioMessagesOnPickup": ["sb_pickupfarmbeastfeed"], | ||
"animation": "feed.animation", | ||
"scripts": ["feed.lua"] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{ | ||
"itemName" : "sb_icefluffalofeed", | ||
"rarity" : "uncommon", | ||
"category" : "farmBeastFeed", | ||
"price" : 250, | ||
"inventoryIcon" : "ice.png", | ||
"description" : "Feed this to a fluffalo calf to raise an Ice Fluffalo - a good source of cryonic extract.", | ||
"tooltipKind" : "sb_object", | ||
"shortdescription" : "Frosty Fig", | ||
"feedType" : "ice", | ||
"radioMessagesOnPickup" : ["sb_pickupfarmbeastfeed"], | ||
"scripts" : ["feed.lua"] | ||
} | ||
"itemName": "sb_icefluffalofeed", | ||
"rarity": "uncommon", | ||
"category": "farmBeastFeed", | ||
"price": 250, | ||
"inventoryIcon": "ice.png", | ||
"description": "Feed this to an ice fluffalo calf to accelerate its growth, or to any other calf to change its element.", | ||
"tooltipKind": "sb_object4", | ||
"shortdescription": "Frosty Fig", | ||
"feedType": "ice", | ||
"radioMessagesOnPickup": ["sb_pickupfarmbeastfeed"], | ||
"animation": "feed.animation", | ||
"scripts": ["feed.lua"] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{ | ||
"itemName" : "sb_poisonfluffalofeed", | ||
"rarity" : "uncommon", | ||
"category" : "farmBeastFeed", | ||
"price" : 250, | ||
"inventoryIcon" : "poison.png", | ||
"description" : "Feed this to a fluffalo calf to raise a Poison Fluffalo - a source of venom samples.", | ||
"tooltipKind" : "sb_object", | ||
"shortdescription" : "Poison Pear", | ||
"feedType" : "poison", | ||
"radioMessagesOnPickup" : ["sb_pickupfarmbeastfeed"], | ||
"scripts" : ["feed.lua"] | ||
} | ||
"itemName": "sb_poisonfluffalofeed", | ||
"rarity": "uncommon", | ||
"category": "farmBeastFeed", | ||
"price": 250, | ||
"inventoryIcon": "poison.png", | ||
"description": "Feed this to a poison fluffalo calf to accelerate its growth, or to any other calf to change its element.", | ||
"tooltipKind": "sb_object4", | ||
"shortdescription": "Poison Pear", | ||
"feedType": "poison", | ||
"radioMessagesOnPickup": ["sb_pickupfarmbeastfeed"], | ||
"animation": "feed.animation", | ||
"scripts": ["feed.lua"] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function build(_, config, parameters, level) | ||
config.itemName = root.createTreasure(parameters.pool or config.pool, level or 0, math.random(1, 4294967295))[1].name | ||
config.itemName = root.createTreasure(parameters.pool or config.pool, level or 0)[1].name | ||
return config, {} | ||
end |
Oops, something went wrong.