to obj is actually going sex now
@@ -99,18 +99,14 @@ points.display(75, 75)
to_obj:
#[desc("Creates a item display object that displays the value of the counter") example("
points = counter(0)
-points.display(75, 75)
+$.add( points.to_obj().with(obj_props.GROUPS, 5g) )
")]
(
self,
- #[desc("X pos of display in units (1 grid square = 30 units)")] x: @number,
- #[desc("Y pos of display in units")] y: @number
) -> @object {
extract import "constants.spwn".obj_props
return obj {
OBJ_ID: 1615,
- X: x,
- Y: y,
ITEM: self.item,
COLOR: 1c,
GROUPS: 999g
