Skip to content

Commit

Permalink
Merge pull request #106 from twisted/105.manipulator-enhancement
Browse files Browse the repository at this point in the history
Make Manipulator an Enhancement and benefit from it
  • Loading branch information
mithrandi committed Nov 17, 2020
2 parents ecf6368 + fcd829d commit 6d49062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/imaginary/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

from imaginary.iimaginary import IManipulator, IThing
from imaginary.objects import LocationLighting, Thing
from imaginary.enhancement import Enhancement

from imaginary.eimaginary import ActionFailure
from imaginary.events import ThatDoesntWork
Expand Down Expand Up @@ -50,7 +51,7 @@ def setIllumination(self, candelas):



class Manipulator(Item):
class Manipulator(Enhancement, Item):
"""
A L{Manipulator} is the actor for actions which can directly change the
properties of objects in an Imaginary world.
Expand Down
3 changes: 1 addition & 2 deletions src/imaginary/test/test_illumination.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ def test_changeIlluminationLevel(self):
dark_to_light = "Your environs are suddenly alight."
brighten = "Your environs seem slightly brighter."
endarken = "Your environs seem slightly dimmer."
theAdmin = Manipulator(store=self.store, thing=self.playerWrapper.actor)
self.playerWrapper.actor.powerUp(theAdmin)
Manipulator.createFor(self.playerWrapper.actor)

self._test(
"illuminate 0",
Expand Down

0 comments on commit 6d49062

Please sign in to comment.