Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if _transformationsAPI.Transformations.OhCrap == nil then
- _transformationsAPI.Transformations.OhCrap = {}
- end
- _transformationsAPI.Transformations.OhCrap.type = "normal"
- _transformationsAPI.Transformations.OhCrap.requirement = 3
- if not _transformationsAPI.Transformations.OhCrap.items then
- _transformationsAPI.Transformations.OhCrap.items = {}
- end
- -- Adds the items and how much they increment the transformation counter by
- _transformationsAPI.Transformations.OhCrap.items.flush = {id=CollectibleType.COLLECTIBLE_FLUSH, increment = 1, type = "normal"}
- _transformationsAPI.Transformations.OhCrap.items.numberTwo = {id=CollectibleType.COLLECTIBLE_NUMBER_TWO, increment = 1, type = "normal"}
- _transformationsAPI.Transformations.OhCrap.items.eColi = {id=CollectibleType.COLLECTIBLE_E_COLI, increment = 1, type = "normal"}
- _transformationsAPI.Transformations.OhCrap.items.thePoop = {id=CollectibleType.COLLECTIBLE_POOP, increment = 1, type = "normal"}
- _transformationsAPI.Transformations.OhCrap.items.hallowedGround = {id=CollectibleType.COLLECTIBLE_HALLOWED_GROUND, increment = 1, type = "normal"}
- if not _transformationsAPI.Transformations.OhCrap.onActivationFunctions then
- _transformationsAPI.Transformations.OhCrap.onActivationFunctions = {}
- end
- -- functions to be run when a player gets a transformation. Take as argument both
- function _transformationsAPI.Transformations.OhCrap.onActivationFunctions.causeRegularTransformation (player,count)
- local activeitem = player:GetActiveItem()
- local activecharge = player:GetActiveCharge()
- local batterycharge = player:GetBatteryCharge()
- -- gives all 3 items in quick succession, triggering the actual transformation
- player:AddCollectible(CollectibleType.COLLECTIBLE_POOP,0,false)
- player:RemoveCollectible(CollectibleType.COLLECTIBLE_POOP)
- player:AddCollectible(CollectibleType.COLLECTIBLE_FLUSH,0,false)
- player:RemoveCollectible(CollectibleType.COLLECTIBLE_FLUSH)
- player:AddCollectible(CollectibleType.COLLECTIBLE_E_COLI,0,false)
- player:RemoveCollectible(CollectibleType.COLLECTIBLE_E_COLI)
- player:AddCollectible(activeitem,activecharge,false) -- gives the player back its original item
- end
Advertisement
Add Comment
Please, Sign In to add comment