Skip to content

Commit

Permalink
Changes to support pol 100.1
Browse files Browse the repository at this point in the history
- `true` and `false` keywords
- boat piloting mount piece
  • Loading branch information
KevinEady committed Feb 7, 2024
1 parent 978ae2b commit ee600d7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pkg/commands/gm/summon.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function summon_creature( caster, circle := 8, npctemplate, cast_loc, gate)
sleep(2);
thecritter := CreateNpcFromTemplate(npctemplate, 5849, 1207, 0, parms, caster.realm);
if(npctemplate == "daemon")
thecritter.setCriminal(1);w
thecritter.setCriminal(1);
caster.setCriminal(1);
endif
MoveObjectToLocation(thecritter, cast_loc.x, cast_loc.y, cast_loc.z, thecritter.realm, MOVEOBJECT_FORCELOCATION);
Expand Down
16 changes: 16 additions & 0 deletions pkg/multis/boat/config/itemdesc.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Item 0x1F011
OldObjType 0xF011
}

Item 0x1f01c
{
SaveOnExit 0
Graphic 0x3E96
}

Item 0x1F012
{
Name Starboard_Plank
Expand Down Expand Up @@ -88,6 +94,16 @@ Item 0x1F017
CanInsertScript tiller/canInsert
}

Item 0x1F014
{
Name Rope
# Note, graphic will get replaced by what's in boats.cfg
graphic 1
script mooringLine
UseRequiresLOS 0
DoubleClickRange 5
}

Item 0x1F018
{
Name Rudder
Expand Down
6 changes: 3 additions & 3 deletions pkg/systems/attributes/include/skills.inc
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,11 @@ function GetTrueEffectiveSkill(who, skillid)
var base := GetAttributeBaseValue(who, id);
var mod1 := GetAttributeTemporaryMod(who, id);
var mod2 := GetAttributeIntrinsicMod(who, id);
var true := Cdbl((base + mod1 + mod2)/ 10.0);
if(true < 0.0)
var val := Cdbl((base + mod1 + mod2)/ 10.0);
if(val < 0.0)
return 0.0;
else
return true;
return val;
endif
endfunction

Expand Down
8 changes: 0 additions & 8 deletions pkg/systems/merchantnodes/include/nodeEvents.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,3 @@ enum MN_EVENTS
SPAWN_EVENT := 0x80,
UPDATE_EVENT := 0x100
endenum

// Kind of silly but these are here for the two scripts started,
// makes the second parameter passed in the array more clear as
// to what is going on...
enum SCRIPT_OPTS
FALSE := 0x0,
TRUE := 0x1
endenum

0 comments on commit ee600d7

Please sign in to comment.