Skip to content

Instantly share code, notes, and snippets.

@desophos
Created July 9, 2017 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save desophos/352fdb8849255f64c4ea149a1273c88d to your computer and use it in GitHub Desktop.
Save desophos/352fdb8849255f64c4ea149a1273c88d to your computer and use it in GitHub Desktop.
from siege import Cooldown
from siege.util import seconds
from siege.component import Event
from core.template.item import Item, Material, CraftResult
from creamon.item.creaball import CreaballCapture
creaball = Item(
name = "Basic Creaball",
classification = "Crafted",
genus = "creaball",
stack = 99,
image = "empty_creaball.png",
cooldown = Cooldown("empty_creaball", seconds(5))
)
creaball.craftable(
category = "Basics",
subcategory = "Essentials",
level = 1,
experience = 5,
serviceRequired = "Workstation",
materials = [
Material('oil_clot', quantity=2),
Material('iron_ingot', quantity=1)
],
results = [
CraftResult(quantity=1)
]
)
creaball.add(Event())
creaball.add(
CreaballCapture(
max_level = 15,
hp_fraction = 0.25
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment